Re: [LyX/master] New layout for aastex6.cls. Fixes #10027.
On Fri, Apr 08, 2016 at 09:36:26PM +0200, Günter Milde wrote: > commit b4dcad83b2f6e3fce28b4e04cc1abc8d654f9bfe > Author: Günter Milde > Date: Fri Apr 8 21:34:23 2016 +0200 > > New layout for aastex6.cls. Fixes #10027. > > Some more work for new and improved styles optional. > > +Style TableRefs > + LabelString "References—" > + LabelFont > + SeriesBold > + EndFont > +End > + > +Style TableComments > + LabelString "Note—" > +End The — character seems to cause the following .po error for me: make[2]: Entering directory '/home/scott/lyxbuilds/master/repo/po' make lyx.pot-update make[3]: Entering directory '/home/scott/lyxbuilds/master/repo/po' cat qt4_l10n.pot layouts_l10n.pot languages_l10n.pot latexfonts_l10n.pot encodings_l10n.pot ui_l10n.pot external_l10n.pot formats_l10n.pot | msguniq -o lyx.po msguniq: input file '-' doesn't contain a header entry with a charset specification Makefile:696: recipe for target 'l10n_pots' failed This situation has come up before: http://comments.gmane.org/gmane.editors.lyx.devel/141154 Kornel proposed in that thread a fix that would allow for UTF-8 characters. Should that permanent fix be considered? Even if so, I imagine that for RC1 we should just go with a temporary fix so I just replaced the dash with ASCII dashes at fe82ce96. Scott signature.asc Description: PGP signature
Re: Layout Files for Incompatible Class Files
On Thu, Apr 07, 2016 at 12:43:39PM -0400, Scott Kostyshak wrote: > On Thu, Apr 07, 2016 at 08:19:59AM +, Guenter Milde wrote: > > I'd ask Uwe first to comit his patch -- it is his layout and he has done > > more work. > > Makes sense. Uwe, can you please commit? Thanks for your patch. > > > The differences to my version are minor and can also go into 2.2.1. Günter, I'm not sure when Uwe will have time. Can you please commit a full patch on his behalf? I'm confident that Uwe will not care who does the actual commit and that he will be happy to move towards 2.2.0 as soon as possible. You can of course mention in the commit message the work done by Uwe. Thanks a lot for your help on this issue, Scott signature.asc Description: PGP signature
Re: Layout Files for Incompatible Class Files
On 2016-04-08, Richard Heck wrote: > On 04/08/2016 12:01 PM, Scott Kostyshak wrote: >> On Fri, Apr 08, 2016 at 11:39:55AM +, Guenter Milde wrote: >>> On 2016-04-07, Scott Kostyshak wrote: On Thu, Apr 07, 2016 at 08:19:59AM +, Guenter Milde wrote: > On 2016-04-07, Scott Kostyshak wrote: > Still, the noncontroversial patch for aastex was put on hold. Please commit that. Thanks for the patch. >>> Here is the complete patch. OK so? >> It looks good. Thanks for updating the tests also. >> Please commit. >> If I remember correctly, we did not arrive to an agreement for what to name >> the template file, right? In this example, we did not decide whether the >> template for aastex6 should be aastex.lyx or aastex6.lyx? I am just asking >> for my own memory, not that you should change it to aastex6.lyx. > In this case, since the class has a completely new name, it seems > reasonable for the template to have that name, too. In the case where > the class has the same name, but it's been updated, it seems reasonable > for the template to keep the same name, and not to be versioned. > Richard Changed and committed. Günter
Re: Layout Files for Incompatible Class Files
On 04/08/2016 12:01 PM, Scott Kostyshak wrote: > On Fri, Apr 08, 2016 at 11:39:55AM +, Guenter Milde wrote: >> On 2016-04-07, Scott Kostyshak wrote: >>> On Thu, Apr 07, 2016 at 08:19:59AM +, Guenter Milde wrote: On 2016-04-07, Scott Kostyshak wrote: Still, the noncontroversial patch for aastex was put on hold. >>> Please commit that. Thanks for the patch. >> Here is the complete patch. OK so? > It looks good. Thanks for updating the tests also. > > Please commit. > > If I remember correctly, we did not arrive to an agreement for what to name > the template file, right? In this example, we did not decide whether the > template for aastex6 should be aastex.lyx or aastex6.lyx? I am just asking > for my own memory, not that you should change it to aastex6.lyx. In this case, since the class has a completely new name, it seems reasonable for the template to have that name, too. In the case where the class has the same name, but it's been updated, it seems reasonable for the template to keep the same name, and not to be versioned. Richard > > Scott
Re: Layout Files for Incompatible Class Files
On Fri, Apr 08, 2016 at 11:39:55AM +, Guenter Milde wrote: > On 2016-04-07, Scott Kostyshak wrote: > > On Thu, Apr 07, 2016 at 08:19:59AM +, Guenter Milde wrote: > >> On 2016-04-07, Scott Kostyshak wrote: > > >> Still, the noncontroversial patch for aastex was put on hold. > > > Please commit that. Thanks for the patch. > > Here is the complete patch. OK so? It looks good. Thanks for updating the tests also. Please commit. If I remember correctly, we did not arrive to an agreement for what to name the template file, right? In this example, we did not decide whether the template for aastex6 should be aastex.lyx or aastex6.lyx? I am just asking for my own memory, not that you should change it to aastex6.lyx. Scott signature.asc Description: PGP signature
Interesting system for publishing content from Github
Mentioned on Reddit: https://www.reddit.com/r/LaTeX/comments/4dtpfn/openpublisher_jekyll_pandoc_latex_epub_mobi_and/ Code available on Github: https://github.com/chrisanthropic/Open-Publisher Focused on fiction, but I found the idea of being able to directly open a web page interesting --- certainly that would be really handy for some work which I do (editing the wiki for an opensource CNC machine). I think it'd be way cool to be able to select a URL in the LyX dialog, have the program figure out what the underlying source is (if it's mediawiki, or on Github, &c.) parse the source and then load that. William
Re: Layout Files for Incompatible Class Files
On 2016-04-07, Scott Kostyshak wrote: > On Thu, Apr 07, 2016 at 08:19:59AM +, Guenter Milde wrote: >> On 2016-04-07, Scott Kostyshak wrote: >> Still, the noncontroversial patch for aastex was put on hold. > Please commit that. Thanks for the patch. Here is the complete patch. OK so? Günter >From 2871361a8bf2cd1506781043a5add9975443828f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=BCnter=20Milde?= Date: Fri, 8 Apr 2016 13:36:46 +0200 Subject: [PATCH] New layout for aastex6.cls. Fixes #10027. Some more work for new and improved styles optional. --- development/autotests/unreliableTests | 11 ++- lib/Makefile.am | 1 + lib/doc/LaTeXConfig.lyx | 47 +++-- lib/examples/aas_sample.lyx | 179 -- lib/layouts/aastex.layout | 8 +- lib/layouts/aastex6.layout| 111 + lib/templates/aastex.lyx | 104 +++- 7 files changed, 374 insertions(+), 87 deletions(-) create mode 100644 lib/layouts/aastex6.layout diff --git a/development/autotests/unreliableTests b/development/autotests/unreliableTests index dc361ce..ee18fe1 100644 --- a/development/autotests/unreliableTests +++ b/development/autotests/unreliableTests @@ -60,11 +60,12 @@ Sublabel: varying_versions # # Test depending on TeX distribution, package versions or OS -# document class aastex.cls replaced by aastex6.cls -# (in CTAN and TL 2015-update around march 2016) -# New layout required, see #10027 -export/templates/aastex.* -export/examples/aas_sample.* +# document class aastex.cls replaced by aastex6.cls (v.1 2016/02/16) +# in CTAN and TeXLive in march 2016 +# Template and sample use the new version via aastex6.layout (cf. #10027) +# -> fail if aastex6.cls is missing (TeXLive15 original) +export/templates/aastex_(dvi|pdf).* +export/examples/aas_sample_(dvi|pdf).* Sublabel: wrong_output diff --git a/lib/Makefile.am b/lib/Makefile.am index 80463f4..cdad5cd 100644 --- a/lib/Makefile.am +++ b/lib/Makefile.am @@ -1966,6 +1966,7 @@ dist_layouts_DATA =\ layouts/aapaper.inc \ layouts/aapaper.layout \ layouts/aastex.layout \ + layouts/aastex6.layout \ layouts/achemso.layout \ layouts/acm-sigs.layout \ layouts/acm-sigs-alt.layout \ diff --git a/lib/doc/LaTeXConfig.lyx b/lib/doc/LaTeXConfig.lyx index 5aacab1..3c55b99 100644 --- a/lib/doc/LaTeXConfig.lyx +++ b/lib/doc/LaTeXConfig.lyx @@ -2291,21 +2291,39 @@ arg "aastex" \end_layout \begin_layout Description -CTAN: N/A (available from the American Astronomical Society's ftp site -\family typewriter -ftp.aas. -\family default -org in directory +CTAN: N/A +\end_layout + +\begin_layout Description +Notes: Obsoleted by aastex6. +\end_layout + +\begin_layout Subsection +aastex6 +\end_layout + +\begin_layout Description +Found: +\begin_inset Info +type "textclass" +arg "aastex" +\end_inset + + +\end_layout + +\begin_layout Description +CTAN: \family typewriter -/pub +/macros/latex/contrib/aastex \family default -s) + \end_layout \begin_layout Description Notes: The document class \family sans -aastex +aastex6 \family default can be used to write articles for submission to the American journals \emph on @@ -2316,6 +2334,19 @@ Astrophysical Journal, Astronomical Journal Publications of the Astronomical Society of the Pacific \emph default . + Package and documentation are also available from the American Astronomical + Society +\begin_inset Flex URL +status open + +\begin_layout Plain Layout + +http://journals.aas.org/authors/aastex/aastex.html +\end_layout + +\end_inset + +. \end_layout \begin_layout Subsection diff --git a/lib/examples/aas_sample.lyx b/lib/examples/aas_sample.lyx index 3d2aa78..9cca717 100644 --- a/lib/examples/aas_sample.lyx +++ b/lib/examples/aas_sample.lyx @@ -4,7 +4,7 @@ \begin_header \save_transient_properties true \origin /systemlyxdir/examples/ -\textclass aastex +\textclass aastex6 \begin_preamble \newcommand{\vdag}{(v)^\dagger} \newcommand{\myemail}{skywal...@galaxy.far.far.away} @@ -70,14 +70,103 @@ \papersides 1 \paperpagestyle default \tracking_changes false +\output_changes false \html_math_output 0 \html_css_as_file 0 -\output_changes false \html_be_strict false \end_header \begin_body +\begin_layout Standard +\begin_inset Note Note +status open + +\begin_layout Plain Layout +\noindent +\align left +Sample document for contributions to journals of the American Astronomical + Society (AAS). + Please consult the +\begin_inset CommandInset href +LatexCommand href +name "AASTeX user guide" +target "http://journals.aas.org/authors/aastex/aasguide.html"; + +\end_inset + + for details on how to use AASTeX. + +\end_layout + +\begin_layout Plain Layout +\noindent +\align left +An up-to-date sample LaTeX article using AASTeX is available under +\begin_inset Flex URL +status open + +\begin_l
2.2.0dev: Bug 10060 Paragraph setting "Longest label" gets blanked out in dialog
The "paragraph settings" dialog blanks out the "longest label" field when the selection spans more than one paragraph. Even if they're all in the same list, or several lists that has the same "longest label" setting. This is confusing and leads to loss of the longest label setting, because pressing OK then sets the empty string as the new longest label. Information can be lost be merely making a selection, bringing up the dialog and pressing OK without changing anything at all. "No change" in a dialog really ought the be no change. I can work around this because I have figured out this behaviour, not all users are able to do that. Instead, they may feel that LyX randomly wrecks formatting. (like some other word processors do...) A use case for this is a page with several short lists, with some text/headings in between. Select the lot and set a common longest label for the whole page. Click apply and see that it looks nice. (But the field blanks out immediately after "apply".) Click OK to get rid of the dialog, and loose the formatting! Expected behaviour: If all lists in the selection have the same "longest label", then show that in the dialog. (Having some headings or paragraphs that don't have a "longest label" setting in the selection should not prevent the longest label from displaying properly either. If there are several lists with different labels in the selection, indicate this. Perhaps by displaying "" in the longest label field. If the user then change something else (line spacing or alignment) and clicks OK, then don't reset the "longest label" because the user has not changed this field. It should be possible to change the line spacing of several lists without forcing a common longest label. Helge Hafting