Commit Graph

7199 Commits

Author SHA1 Message Date
Enrico Forestieri
a365e696e2 Take into account compressed documents when creating a LyX archive 2015-05-14 18:58:46 +02:00
Enrico Forestieri
306b136cc0 Fix bug #4812 (Layout in local directory lost on Save As, Copying)
The "save-as" part of the bug is fixed by extending the \textclass tag
such that, if a local layout file is used, its path relative to the
document directory is now stored together with the name. If a relative
path cannot be used, an absolute one is used but, in this case, the
document is not usable on a different platform.

The "copy" part is fixed by introducing a new \origin tag, which is
written when the file is saved. This tag stores the absolute path of
the document directory. If the document is manually copied to a
different location, the local layout file is retrivied by using
\origin (which is only updated on save).
This new tag may prove useful also for locating other files when the
document is manually moved to a different directory.

As in the original implementation the files needed for the layout
(for example, a latex class) had to be in the same directory as the
layout file, this directory has also to be added to TEXINPUTS.
2015-05-13 22:02:13 +02:00
Stephan Witt
e34e1e5581 #5502 correct short cut for toggle fullscreen - usually it is Control-Command-F on Mac; whitespace 2015-05-12 21:53:07 +02:00
Uwe Stöhr
8010b90cb4 add ability to change box line thickness and separation
fileformat change
2015-05-11 21:30:32 +02:00
Uwe Stöhr
5c5877b5fa stdmenus.inc: add PDF forms example to Help menu 2015-05-11 01:13:05 +02:00
Uwe Stöhr
94f6bf3367 lyx_2_2.py: fix a typo 2015-05-10 01:35:55 +02:00
Juergen Spitzmueller
760b7cf2b6 Add option to Argument to let it be inserted with a copy of the co-text.
This is useful for classic "Short Titles", where one might want to start
with the full title in the inset.

Addresses: #4745
2015-05-09 12:17:24 +02:00
Juergen Spitzmueller
ded1b4f6c8 Adapt enumii counter display to KOMA default as suggested in #3311.
Candidate for branch.
2015-05-09 11:13:28 +02:00
Georg Baum
507cc07c2d Add commented ASCII control pictures
The list was taken by a patch from Jürgen for bug #5704.
2015-05-08 22:00:40 +02:00
Juergen Spitzmueller
32341edbb7 Document PassThruChars option of argument. 2015-05-08 09:37:28 +02:00
Stephan Witt
68ee68103a #5502 add binding for full screen toggle on mac 2015-05-05 22:05:46 +02:00
Scott Kostyshak
5f7395d648 ctex.lyx: use free fonts by default
Now with TeX Live 2014 (and also with 2015), we can export ctex.lyx
with free fonts. I have confirmed that the output is correct.
2015-05-05 02:15:44 -04:00
Scott Kostyshak
b21ccc0f76 Update format of ctex.lyx 2015-05-05 02:07:04 -04:00
Uwe Stöhr
9f3d1e7773 pdfform.module: unset a PassTru
- this makes real life much easier since it saves more TeX code than with passThru
- adapt the example file accordingly
2015-05-05 01:33:11 +02:00
Uwe Stöhr
7dbf98a5e7 linguistics.module: fix 2 whitespace issues 2015-05-05 01:21:22 +02:00
Juergen Spitzmueller
23297a3108 Revert "pdfform.module: repair whitespace"
This reverts commit d2e8e44a0e.
2015-05-03 16:43:14 +02:00
Uwe Stöhr
d2e8e44a0e pdfform.module: repair whitespace
something is fishy her because commit 33a74748
destroyed the alignment for some entries
2015-05-03 16:28:06 +02:00
Uwe Stöhr
31b0af9857 PDF-form.lyx: add a note 2015-05-03 16:21:09 +02:00
Juergen Spitzmueller
f7b152581c PDF-form.lyx: make it compile if insdljs.sty is not installed. 2015-05-03 14:02:26 +02:00
Juergen Spitzmueller
33a747483e Spelling and whitespace fixes. 2015-05-03 13:58:06 +02:00
Uwe Stöhr
8932858563 PDF-form.lyx: more info and corrections
- add example how to check for numbers in text fields
- describe correctly that all fields must have a name
2015-05-03 04:37:28 +02:00
Pavel Sanda
4ecbabf5f9 Add Georger Araujo into contributors.
http://marc.info/?l=lyx-devel&m=143058265303480&w=2
2015-05-02 18:10:07 -07:00
Pavel Sanda
ad6ab20bb1 Add layouttranslations from pt_BR. 2015-05-02 17:53:53 -07:00
Uwe Stöhr
3c9442fd04 lyx2lyx/lyx_2_2.py: correct a description 2015-05-03 02:16:32 +02:00
Juergen Spitzmueller
bc47054be8 Properly fix #6369
Avoid that \newcommand[x] definitions of math macros are pushed multiple
times to the preview loader.

Redefinitions (via \renewcommand[x]) are properly handled.
2015-04-30 16:48:55 +02:00
Uwe Stöhr
8efc734f1a pdfform.module: change whitespace as requested by Jürgen 2015-04-30 01:23:47 +02:00
Uwe Stöhr
f6fde9dbb2 Merge branch 'master' of git.lyx.org:lyx 2015-04-30 01:23:03 +02:00
Uwe Stöhr
f6029f7f93 EmbeddedObjects.lyx: improve description of \cmidrule 2015-04-30 01:22:50 +02:00
Enrico Forestieri
d3eae5b9c7 Do not show previews of snippets that produce latex errors 2015-04-30 00:37:05 +02:00
Uwe Stöhr
d20bc1c883 PDF-form.lyx: add example how to validate numbers 2015-04-30 00:17:39 +02:00
Uwe Stöhr
41b39ff835 PDF-form.lyx: some more info and few adaptions
- pdfform.module: a fix
2015-04-29 22:06:00 +02:00
Enrico Forestieri
2a77dc5ec6 Forgot to escape the dot 2015-04-29 18:04:51 +02:00
Enrico Forestieri
83f2fe7045 Correct progress message
Now we also process with pdflatex the previews requiring hyperref.
2015-04-29 18:00:28 +02:00
Enrico Forestieri
2bbf775c74 Detect hyperref when generating previews
If use of hyperref is detected, the postscript route is not attempted
(because we know it will fail) and the PDF route is directly chosen.
Also account for all upper case extensions for pdflatex image files.
2015-04-29 17:29:27 +02:00
Enrico Forestieri
ca921fd650 Correctly indicate the failing converter
If epstopdf fails, pdftocairo is not called but the warning points
the finger to it. Also correctly indicate the failing file.
2015-04-29 16:20:27 +02:00
Enrico Forestieri
d44b0a19cb Amend 75f7eafd
Was forgetting this last bit from 64e0c558. Also give a message such
that the user is informed that not everything is lost if latex fails.
With this, the previews are generated also when the document directly
specifies a specific pdf output format.
2015-04-29 13:59:28 +02:00
Enrico Forestieri
75f7eafd65 Try even harder to obtain an instant preview
This is a followup commit to 691fdea3 and restores the behavior of the
script as it was intended before 64e0c558, other than taking into account
possible inclusion of files that only pdflatex can process and the
possibility of multiple defined math macros.
The instant previews in the math manual now work again.
2015-04-29 12:32:54 +02:00
Uwe Stöhr
ec7833272a pdfform.module: a simplification
- PDF-form.lyx: update accordingly and a fix
2015-04-29 01:56:43 +02:00
Pavel Sanda
558451a51d Fix broken lilipond links. 2015-04-28 09:32:09 -07:00
Uwe Stöhr
36a5f46c0d pdfform.module: a fix and a new style
- PDF-form.lyx: describe how to customize PDF action buttons and some other refinement and restructuring
2015-04-28 02:00:53 +02:00
Uwe Stöhr
853e034bad PDF-form.lyx: improvements
- enrich the examples
- add info about naming
- formatting fixes to improve the layout of the PDF
- make the document compilable also if the package insdljs is not installed
2015-04-27 22:29:48 +02:00
Enrico Forestieri
c9b553fd2f Use pdftocairo (if available) for instant preview.
If pdftocairo is detected, it is used for generating bitmaps in the
legacy method route in preference to ghostscript. This is justified
by the fact that the conversion is 4 to 5 times faster and the
quality of the generated images is superior.
2015-04-27 21:37:26 +02:00
Enrico Forestieri
691fdea346 Try hard to obtain an instant preview.
When the dvipng route is selected and latex fails, the lyxpreview2bitmap.py
script simply bails out. The failure may be due to using a specific pdf
only feature in ERT (for example, the inclusion of a pdf image).
In this case the procedure may succeed simply trying to use pdflatex
and the legacy conversion method.
2015-04-27 17:28:39 +02:00
Juergen Spitzmueller
f46d08aafd Follow-up on Uwe's whitespace amendments. 2015-04-27 10:04:15 +02:00
Uwe Stöhr
15dbe715e8 pdfform.module: correct the description 2015-04-27 03:00:27 +02:00
Uwe Stöhr
892abc5ee9 pdfform.module: new module to create PDF forms
- PDF-form.lyx: example file describing the module

No special package is required since the PDF form features are provided by hyperref.
2015-04-27 02:56:25 +02:00
Uwe Stöhr
e73f61d300 PDF-comment.lyx: some fixes 2015-04-27 02:33:38 +02:00
Enrico Forestieri
890b9a53cb Fix bug #7850 (Preview of inline math misaligned) 2015-04-26 19:08:16 +02:00
Uwe Stöhr
0e28bf916f pdfcomment.module: reintroduce whitespace mixture because of bug #9518 2015-04-26 18:25:20 +02:00
Juergen Spitzmueller
dfd4c93b78 Add Jari-Matti Mäkelä to the credits 2015-04-26 13:47:55 +02:00