'''
if document.textclass == "IEEEtran":
i = 0
+ i2 = 0
j = 0
k = 0
while True:
if i != -1:
revert_Argument_to_TeX_brace(document, i, 1, 1, False)
i = i + 1
+ if i2 != -1:
+ i2 = find_token(document.body, "\\begin_inset Flex Paragraph Start", i2)
+ if i2 != -1:
+ revert_Argument_to_TeX_brace(document, i2, 1, 1, False)
+ i2 = i2 + 1
if j != -1:
j = find_token(document.body, "\\begin_layout Biography without photo", j)
if j != -1:
# start with the second argument, therefore 2
revert_Argument_to_TeX_brace(document, k, 2, 2, True)
k = k + 1
- if i == -1 and j == -1 and k == -1:
+ if i == -1 and i2 == -1 and j == -1 and k == -1:
+ return
+
+
+def revert_IEEEtran_2(document):
+ '''
+ Reverts Flex Paragraph Start to TeX-code
+ '''
+ if document.textclass == "IEEEtran":
+ begin = 0
+ while True:
+ if begin != -1:
+ begin = find_token(document.body, "\\begin_inset Flex Paragraph Start", begin)
+ if begin != -1:
+ end1 = find_end_of_inset(document.body, begin)
+ document.body[end1 - 2 : end1 + 1] = put_cmd_in_ert("}")
+ document.body[begin : begin + 4] = put_cmd_in_ert("\\IEEEPARstart{")
+ begin = begin + 5
+ if begin == -1:
return
[449, [revert_garamondx, revert_garamondx_newtxmath]],
[448, [revert_itemargs]],
[447, [revert_literate]],
- [446, [revert_IEEEtran, revert_AASTeX, revert_AGUTeX, revert_IJMP, revert_SIGPLAN, revert_SIGGRAPH, revert_EuropeCV, revert_Initials, revert_ModernCV]],
+ [446, [revert_IEEEtran, revert_IEEEtran_2, revert_AASTeX, revert_AGUTeX, revert_IJMP, revert_SIGPLAN, revert_SIGGRAPH, revert_EuropeCV, revert_Initials, revert_ModernCV]],
[445, [revert_latexargs]],
[444, [revert_uop]],
[443, [revert_biolinum]],
\begin_layout Plain Layout
This is a template LyX file for articles to be submitted to journals of
the Institute of Electrical and Electronics Engineers (IEEE).
- For general infos see
+ For general info see
\begin_inset Flex URL
status open
status open
\begin_layout Plain Layout
-You find the IEEEtran document class documentation here:
+It is important that you use the correct document class options for your
+ document..
+ These are explained in the IEEEtran document:
\begin_inset Flex URL
-status collapsed
+status open
\begin_layout Plain Layout
\end_inset
: Your Title
-\begin_inset Note Note
-status open
-
-\begin_layout Plain Layout
-left side
-\series bold
-}{
-\series default
-right side
-\end_layout
-
-\end_inset
-
-
\end_layout
\begin_layout Publication ID
\end_layout
\begin_layout Standard
-\begin_inset Note Note
-status collapsed
+\begin_inset Flex Paragraph Start
+status open
\begin_layout Plain Layout
-The
-\series bold
-
-\backslash
-IEEEPARstart
-\series default
- command is needed in the first paragraph fo the document.
-\end_layout
-
-\end_inset
-
-
-\begin_inset ERT
-status collapsed
+\begin_inset Argument 1
+status open
\begin_layout Plain Layout
-
-
-\backslash
-IEEEPARstart{
+H
\end_layout
\end_inset
-H
-\begin_inset ERT
-status collapsed
-
-\begin_layout Plain Layout
-
-}{
+ere
\end_layout
\end_inset
-ere
-\begin_inset ERT
+
+\begin_inset Note Note
status collapsed
\begin_layout Plain Layout
+The
+\series bold
-}
+\backslash
+IEEEPARstart
+\series default
+ command is needed in the first paragraph of the document.
\end_layout
\end_inset