Juergen Spitzmueller
e7654d9aa2
Re-Fix #8471
...
The bug has partly been re-introduced with fb9a866a6
2016-11-05 13:12:47 +01:00
Jean-Marc Lasgouttes
d207e85cfd
Clear background behind sublables when necessary.
...
This is analogous to what has been done to address #4889 and #10359 .
Fixes bug #10475 .
2016-11-04 11:35:22 +01:00
Tommaso Cucinotta
fcaec6166b
Show symbol name and description in plaintext export of nomenclature entries.
...
This addresses one of the issues highlighted in #10459 .
See http://www.lyx.org/trac/ticket/10459
2016-10-31 10:50:33 +01:00
Jean-Marc Lasgouttes
860accd01f
When selecting special logos, set their color correctly
...
It is not nice when they are the only thinkg in the text that does not
change color.
2016-10-25 15:13:23 +02:00
Guillaume Munch
148b3ae773
Move class definitions inside main class
...
Prepare for following commits.
This prevent's forward-declaration, but including the TexRow header should be
inexpensive.
2016-10-22 23:24:01 +02:00
Guillaume Munch
dbe0c6991b
Add safe line breaks to improve TexRow precision in subfloat & caption
2016-10-22 23:05:44 +02:00
Guillaume Munch
e798db5739
Safe line break to increase precision of error reporting in Listings caption
2016-10-22 22:39:33 +02:00
Juergen Spitzmueller
9235b09fd8
Fix LaTeX output of fixed-width cells with decimal separator
...
This follows Uwe's suggestions (and discharges my own).
The result is not ideal, but there is currently no ideal solution.
Fixes : #9568
2016-10-22 12:13:36 +02:00
Juergen Spitzmueller
fb9a866a66
Implement PassThru option to arguments.
2016-10-21 10:39:55 +02:00
Guillaume Munch
9c0281126e
Change tracking cue for InsetCaption
2016-10-18 01:06:03 +02:00
Guillaume Munch
0aab06c468
Some compilers are worried that a struct is not the same as a class
2016-10-18 00:54:37 +02:00
Guillaume Munch
1f945177b9
Docstringify getLongString in general and preamble snippets in particular
...
Prepare ground for TexRow InPreamble
2016-10-17 00:16:59 +02:00
Guillaume Munch
6edbc1da66
TexRow for InsetArgument
2016-10-17 00:16:59 +02:00
Guillaume Munch
676a0639c5
Use otexstringstream for the captions of InsetCaptionables
...
* Enable TexRow for InsetListings caption.
* Move getCaption* from InsetText to InsetCaptionable.
* Clean-up caption generation for InsetFloat.
2016-10-17 00:16:59 +02:00
Guillaume Munch
f3256ee2cd
texstring and otexstringstream
...
texstring is a pair of a docstring and a corresponding TexRow. The row count in
the TexRow has to match the number of lines in the docstring.
otexstringstream is an output string stream that can be used to create
texstrings (i.e. it's an odocstringstream that records the TexRow information
and let us extract a texstring from it).
texstrings can be passed around and output to otexstream and otexrowstream,
which produces an accurate TexRow information by concatenating TexRows.
2016-10-17 00:16:59 +02:00
Enrico Forestieri
925f933a19
Force local language switch in IPA insets
...
Otherwise we get latex errors when using polyglossia.
2016-09-29 18:35:26 +02:00
Guillaume Munch
3fd2398a28
Remove option to disable texrow
...
I suspect that the gain was negligible, yet it made debugging and maintainance
harder.
2016-09-23 23:39:48 +02:00
Guillaume Munch
f0959cc292
explicit operator bool
2016-09-23 23:39:48 +02:00
Jean-Marc Lasgouttes
db12707655
Do not hardcode required packages for Note inset
...
This does not change the default behavior, but allows to customize it.
2016-09-21 16:11:53 +02:00
Jean-Marc Lasgouttes
72837fec5c
Amend commit e194c9ce27
...
As noted in the log, this commit was a bit radical and needs some
adjustments (which was expected, actually).
Let InsetText do their own background drawing.
Fixes bug #10359 .
2016-09-05 11:06:01 +02:00
Scott Kostyshak
1a374a931b
Exit with error if child exits with error ( #10188 )
...
Before, it could have been the case that
lyx -e pdf2 file.lyx
had exit code 0 even though file.lyx includes a file that exits with
error. If compiled in the GUI a warning was given, but from the
command line exit code it would seem there was no problem. The exit
code for this case is now non-zero and the word "Warning" is now
removed from the message because it should be treated as an error.
An exception is thrown from InsetInclude and is caught in
Buffer::makeLaTeXFile() and added to the error list.
The (similar) use case at #8840 is also fixed by this commit.
2016-09-02 18:24:14 -04:00
Richard Heck
5018e1077b
producesOutput() should not be redeclared as producesOutput(bool).
2016-08-28 00:04:02 -04:00
Jean-Marc Lasgouttes
4ddad2f6cd
Remove horizontal spacing around previews
...
This concerns the preview version of InsetPreview and InsetIPA.
Fixes bug #10304 .
2016-08-19 15:01:18 +02:00
Jean-Marc Lasgouttes
e194c9ce27
A more radical approach to inset background painting
...
Now by default all insets paint their own background when needed. This
means that 63cf3297
and part of 9940acc5
can be reverted.
To avoid extra painting, background drawing is disabled for
InsetCommand and InsetCollapsable. These insets draw background as
part of their normal drawing activity.
This will avoid drawing artifacts with InsetNewpage, InsetVSpace and
probably some others.
2016-08-17 12:05:00 +02:00
Richard Heck
f15c4159aa
Special characters should be output to the TOC.
2016-08-04 21:09:32 -04:00
Jean-Marc Lasgouttes
63cf3297f8
Let InsetSpecialChar draw its background when necessary
...
This is the same fix as in 9940acc5
for auote inset and math macro template.
2016-08-04 23:21:33 +02:00
Guillaume Munch
096afc733b
Fix embarrassing logic mistake
...
Thanks Richard for pointing at it.
2016-08-03 22:17:26 +01:00
Richard Heck
f1b748e42b
No need to display contents of the branch when it is open.
...
Thanks to Vincent for noticing.
2016-08-02 16:33:18 -04:00
Richard Heck
ab3a49973f
Fix display of code listings in XHTML.
...
Fixes bug #8362 .
2016-07-31 01:47:30 -04:00
Richard Heck
daf7cd4c05
Activate export of external material for XHTML.
...
As of this commit, this is ineffective, since no changes have been
made to external_templates.
2016-07-31 01:26:15 -04:00
Richard Heck
6b97f2c075
Fix substitution for $$Contents.
...
The second argument here is the length of the string to replace,
not the position of the final character.
2016-07-31 00:15:48 -04:00
Richard Heck
93a612220e
Fix preview of external material with plaintext and DocBook.
2016-07-30 23:48:27 -04:00
Richard Heck
47c52db13e
Use scaling factor in XHTML output.
2016-07-30 21:57:52 -04:00
Richard Heck
e1f597e3da
If we cannot find the input format for a graphic, we cannot convert it.
...
Also includes some minor code cleanup.
2016-07-30 21:51:25 -04:00
Richard Heck
e2fa3cb6ef
Fix output of table borders for XHTML. Fixes bug #10154 .
2016-07-30 20:15:12 -04:00
Richard Heck
eeb6b5b153
Revert most of dd7863b6
.
...
I did not mean to commit the caption-related stuff.
2016-07-30 01:42:08 -04:00
Richard Heck
aad0802b53
Whitespace.
2016-07-30 01:35:22 -04:00
Richard Heck
dd7863b6ac
Fix thinko from earlier commit.
...
We need to output the deferred material AFTER the paragraph is closed.
2016-07-30 01:29:06 -04:00
Richard Heck
f1cd24243f
Be more careful with braces, due to comments.
2016-07-29 23:59:24 -04:00
Richard Heck
76e6c77825
Simplify and unify code for special handling in argument insets.
2016-07-29 23:38:51 -04:00
Richard Heck
96a8156557
Fix display of colors in labels of arguments.
...
We need to handle this specially, just as we do the main font.
2016-07-29 23:36:48 -04:00
Richard Heck
cbbae06c9b
Fix display of branch buttons and tooltips.
2016-07-29 22:58:03 -04:00
Jean-Marc Lasgouttes
9940acc506
Try to fix #4889 in the right way
...
For reference, the bug was that quote insets grew bolder because, when
painted over themselves, anti-aliasing made them darker.
It turned out that the fix there created others than were
painstakingly fixed : #7164 , #7165 , #7174 , #7193... More recently, it
created other problems:
http://article.gmane.org/gmane.editors.lyx.devel/163471
We use the right fix here:
* draw background of quote inset when not doing full repaint
* draw background of math macro template when not doing full repaint
* remove hack that grew from #4889 fix.
2016-07-20 00:24:24 +02:00
Jean-Marc Lasgouttes
e35110eab7
Realize inset argument label font before using it
2016-07-19 22:29:57 +02:00
Richard Heck
7575ad159b
Revert "Do not crash is release mode if we stumble across an unrealized font."
...
This reverts commit c560e6b3a6
.
I did not mean to comit the changes to the gmo files.
2016-07-18 12:59:32 -04:00
Richard Heck
c560e6b3a6
Do not crash is release mode if we stumble across an unrealized font.
2016-07-18 12:56:20 -04:00
Juergen Spitzmueller
858f6b6c7b
Whitespace.
2016-07-18 16:28:12 +02:00
Jean-Marc Lasgouttes
d654c4782a
Typo
2016-07-18 16:24:06 +02:00
Jean-Marc Lasgouttes
2306fca659
Some things did not need to be mutable after all
2016-07-18 14:34:08 +02:00
Jean-Marc Lasgouttes
097ab41c49
Remove mutable variable InsetTabular::offset_valign_
...
Introduce instead a function Tabular::offsetVAlignment() that does the
same thing.
2016-07-18 12:37:14 +02:00