-#LyX 2.2 created this file. For more info see http://www.lyx.org/
-\lyxformat 508
+#LyX 2.3 created this file. For more info see http://www.lyx.org/
+\lyxformat 526
\begin_document
\begin_header
\save_transient_properties true
\font_osf false
\font_sf_scale 100 100
\font_tt_scale 100 100
+\use_microtype false
\graphics default
\default_output_format pdf2
\output_sync 0
\tocdepth 3
\paragraph_separation indent
\paragraph_indentation default
-\quotes_language german
+\quotes_style german
+\dynamic_quotes 0
\papercolumns 1
\papersides 2
\paperpagestyle headings
-Datei einsetzen
wollen, lesen Sie Abschnitt
\begin_inset CommandInset ref
-LatexCommand vref
+LatexCommand formatted
reference "sec:LaTeX-Code"
+plural "false"
+caps "false"
\end_inset
\begin_layout Standard
\align center
-
\begin_inset Flex URL
status collapsed
\family sans
SichtbarerText
-\family default
-
\end_layout
\begin_deeper
\end_inset
Header
-\family default
-
\end_layout
\begin_deeper
i += 1
continue
- plural = caps = label = False
- if use_refstyle:
+ plural = caps = suffix = False
+ k = find_token(document.body, "LaTeXCommand formatted", i, j)
+ if k != -1 and use_refstyle:
plural = get_bool_value(document.body, "plural", i, j, False)
caps = get_bool_value(document.body, "caps", i, j, False)
label = get_quoted_value(document.body, "reference", i, j)
if label:
- (prefix, suffix) = label.split(":", 1)
+ try:
+ (prefix, suffix) = label.split(":", 1)
+ except:
+ document.warning("No `:' separator in formatted reference at line %d!" % (i))
else:
document.warning("Can't find label for reference at line %d!" % (i))
- # this effectively tests also for use_refstyle
- if not ((plural or caps) and label):
+ # this effectively tests also for use_refstyle and a formatted reference
+ # we do this complicated test because we would otherwise do this erasure
+ # over and over and over
+ if not ((plural or caps) and suffix):
del_token(document.body, "plural", i, j)
del_token(document.body, "caps", i, j - 1) # since we deleted a line
i = j - 1