mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-25 05:55:34 +00:00
lyx2lyx: lyx2lyx: lyx_1_6.py, parser_tools.py:
add some comments git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24246 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
c594c4d561
commit
17c3888d25
@ -486,20 +486,22 @@ def revert_pdf_options(document):
|
|||||||
|
|
||||||
# write to the preamble when hyperref was used
|
# write to the preamble when hyperref was used
|
||||||
if hyperref == True:
|
if hyperref == True:
|
||||||
#preamble write preparation
|
# preamble write preparations
|
||||||
|
# bookmark numbers are only output when they are turned on
|
||||||
if bookmarksopen == ',\n bookmarksopen=true':
|
if bookmarksopen == ',\n bookmarksopen=true':
|
||||||
bookmarksopen = bookmarksopen + bookmarksopenlevel
|
bookmarksopen = bookmarksopen + bookmarksopenlevel
|
||||||
if bookmarks == ',\n bookmarks=true':
|
if bookmarks == ',\n bookmarks=true':
|
||||||
bookmarks = bookmarks + bookmarksnumbered + bookmarksopen
|
bookmarks = bookmarks + bookmarksnumbered + bookmarksopen
|
||||||
else:
|
else:
|
||||||
bookmarks = bookmarks
|
bookmarks = bookmarks
|
||||||
|
# hypersetup is only output when there are things to be set up
|
||||||
setupstart = '\\hypersetup{%\n'
|
setupstart = '\\hypersetup{%\n'
|
||||||
setupend = ' }\n'
|
setupend = ' }\n'
|
||||||
if otheroptions == "" and title == "" and author == ""\
|
if otheroptions == "" and title == "" and author == ""\
|
||||||
and subject == "" and keywords == "":
|
and subject == "" and keywords == "":
|
||||||
setupstart = ""
|
setupstart = ""
|
||||||
setupend = ""
|
setupend = ""
|
||||||
#write the preamble
|
# write the preamble
|
||||||
add_to_preamble(document,
|
add_to_preamble(document,
|
||||||
['% Commands inserted by lyx2lyx for PDF properties',
|
['% Commands inserted by lyx2lyx for PDF properties',
|
||||||
'\\usepackage[unicode=true'
|
'\\usepackage[unicode=true'
|
||||||
|
@ -160,7 +160,8 @@ def get_value_string(lines, token, start, end = 0, trim = False, default = ""):
|
|||||||
""" get_value_string(lines, token, start[[, end], trim, default]) -> string
|
""" get_value_string(lines, token, start[[, end], trim, default]) -> string
|
||||||
|
|
||||||
Return tokens after token as string, in lines, where
|
Return tokens after token as string, in lines, where
|
||||||
token is the first element."""
|
token is the first element. When trim is used, the first and last character
|
||||||
|
of the string is trimmed."""
|
||||||
|
|
||||||
i = find_token_exact(lines, token, start, end)
|
i = find_token_exact(lines, token, start, end)
|
||||||
if i == -1:
|
if i == -1:
|
||||||
|
Loading…
Reference in New Issue
Block a user