Re: Get unicode output for quotation marks
Am Dienstag, den 07.04.2020, 16:14 + schrieb Guenter Milde: > Instead my suggestion is to let the quote inset write literal > characters > instead of macros or ligatures whenever possible. Yes, we can do that (if we know the conditions). Jürgen signature.asc Description: This is a digitally signed message part -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: Get unicode output for quotation marks
On 2020-04-07, Jürgen Spitzmüller wrote: > [-- Type: text/plain, Encoding: quoted-printable --] > Am Dienstag, den 07.04.2020, 06:39 + schrieb Guenter Milde: >> Why not using Unicode literals generally, >> converting them with "unicodesymbols" if literals are not supported? > We've had this discussion more than once. Please consult the (lyx- > devel) archives why literal quote chars are inferior to quote insets, > particularly if we try to extend support eventually (think csquotes, > quote balancing check, etc.). > I won't go into this discussion any more. Sorry for not beeing clear: I see the advantages of the quote inset and do not want to replace them. Instead my suggestion is to let the quote inset write literal characters instead of macros or ligatures whenever possible. Günter -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: Get unicode output for quotation marks
Am Dienstag, den 07.04.2020, 06:39 + schrieb Guenter Milde: > Why not using Unicode literals generally, > converting them with "unicodesymbols" if literals are not supported? We've had this discussion more than once. Please consult the (lyx- devel) archives why literal quote chars are inferior to quote insets, particularly if we try to extend support eventually (think csquotes, quote balancing check, etc.). I won't go into this discussion any more. Jürgen signature.asc Description: This is a digitally signed message part -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: Get unicode output for quotation marks
On 2020-04-06, Jürgen Spitzmüller wrote: > [-- Type: text/plain, Encoding: quoted-printable --] > Am Montag, den 24.02.2020, 11:38 +0100 schrieb Daniel: >> Hi, >> Is there a way to get LyX to use unicode for quotation marks? >> In particular, I am using quotation marks in a section title which >> generates the following LaTeX code: >> \section{``Test''} >> However, I would like it to generate >> \section{“Test”} >> The problem is that otherwise the bookmarks in PDFs also show >> ``Test'' >> instead of “Test”. >> Minimal example attached. > Fixed in master at > https://www.lyx.org/trac/changeset/c0adb03a7ae15cf6409ee3cb64f4cc91c24c052e/lyxgit > We use now the macros with headings in hyperref. Why not using Unicode literals generally, converting them with "unicodesymbols" if literals are not supported? Günter -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: Get unicode output for quotation marks
Am Montag, den 06.04.2020, 10:25 -0400 schrieb Richard Kimberly Heck: > > Could be backported to stable. > > Sure. Thanks, done. Jürgen signature.asc Description: This is a digitally signed message part -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: Get unicode output for quotation marks
On 4/6/20 2:55 AM, Jürgen Spitzmüller wrote: > Am Montag, den 24.02.2020, 11:38 +0100 schrieb Daniel: >> Hi, >> >> Is there a way to get LyX to use unicode for quotation marks? >> >> In particular, I am using quotation marks in a section title which >> generates the following LaTeX code: >> >> \section{``Test''} >> >> However, I would like it to generate >> >> \section{“Test”} >> >> The problem is that otherwise the bookmarks in PDFs also show >> ``Test'' >> instead of “Test”. >> >> Minimal example attached. > Fixed in master at > https://www.lyx.org/trac/changeset/c0adb03a7ae15cf6409ee3cb64f4cc91c24c052e/lyxgit > > We use now the macros with headings in hyperref. > > Could be backported to stable. Sure. Riki -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: Get unicode output for quotation marks
Am Montag, den 24.02.2020, 11:38 +0100 schrieb Daniel: > Hi, > > Is there a way to get LyX to use unicode for quotation marks? > > In particular, I am using quotation marks in a section title which > generates the following LaTeX code: > > \section{``Test''} > > However, I would like it to generate > > \section{“Test”} > > The problem is that otherwise the bookmarks in PDFs also show > ``Test'' > instead of “Test”. > > Minimal example attached. Fixed in master at https://www.lyx.org/trac/changeset/c0adb03a7ae15cf6409ee3cb64f4cc91c24c052e/lyxgit We use now the macros with headings in hyperref. Could be backported to stable. Jürgen > > Daniel signature.asc Description: This is a digitally signed message part -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: Get unicode output for quotation marks
On 2020-03-16 11:36, Guenter Milde wrote: On 2020-03-14, Daniel wrote: On 2020-03-14 13:25, Guenter Milde wrote: Is there a way to get LyX to use unicode for quotation marks? In particular, I am using quotation marks in a section title which generates the following LaTeX code: \section{``Test''} However, I would like it to generate \section{“Test”} The problem is that otherwise the bookmarks in PDFs also show ``Test'' instead of “Test”. I just learned about the LaTeX command \texorpdfstring. Basically, one gives it two arguments where the first is the tex and the second is the one to be used in the bookmarks (pdf). Doesn't look nice in LyX but gets the job done. However, I had to manually switch to unicode encoding to get it to work with the "fancy" quotation marks (Document > Settings > Language). See the attached file. With Unicode (utf8) encoding, there should be no need for \texorpdfstring, as the typographical quotes are used in the latex source: >> \section{“Test”} (This is one of the reasons why utf8 is the new default encoding in LyX 2.4.) No, even with utf8, \section{``Test''} is produced in the latex source. I see: * The Unicode literals are used in the LaTeX source when - input uses Unicode literals (with either system key-combinations or custom LyX keybindings) and - Document>Settings>Language>input encoding is set to one of the Unicode encodings or "pass-through". or with "non-TeX" fonts. * the "quote inset" still uses the LaTeX ligatures instead of Unicode with 8-bit TeX fonts. This was sensible with "input encoding" defaulting to latin1 (or some other language dependent 8-bit encoding) where the literal charater "“" would have become "\textdblquote" in the LaTeX source. As the new default "input encoding" is utf8, this reason no longer holds. Could you file an enhancement request ticket at bugs.lyx.org? Günter I can't follow what you are saying. So, I don't think I am the right person to file an enhancement report. Daniel -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: Get unicode output for quotation marks
On 2020-03-14, Daniel wrote: > On 2020-03-14 13:25, Guenter Milde wrote: Is there a way to get LyX to use unicode for quotation marks? In particular, I am using quotation marks in a section title which generates the following LaTeX code: \section{``Test''} However, I would like it to generate \section{“Test”} The problem is that otherwise the bookmarks in PDFs also show ``Test'' instead of “Test”. >>> I just learned about the LaTeX command \texorpdfstring. Basically, one >>> gives it two arguments where the first is the tex and the second is the >>> one to be used in the bookmarks (pdf). Doesn't look nice in LyX but gets >>> the job done. However, I had to manually switch to unicode encoding to >>> get it to work with the "fancy" quotation marks (Document > Settings > >>> Language). See the attached file. >> With Unicode (utf8) encoding, there should be no need for >> \texorpdfstring, as the typographical quotes are used in the latex >> source: >> >> \section{“Test”} >> (This is one of the reasons why utf8 is the new default encoding in LyX 2.4.) > No, even with utf8, \section{``Test''} is produced in the latex source. I see: * The Unicode literals are used in the LaTeX source when - input uses Unicode literals (with either system key-combinations or custom LyX keybindings) and - Document>Settings>Language>input encoding is set to one of the Unicode encodings or "pass-through". or with "non-TeX" fonts. * the "quote inset" still uses the LaTeX ligatures instead of Unicode with 8-bit TeX fonts. This was sensible with "input encoding" defaulting to latin1 (or some other language dependent 8-bit encoding) where the literal charater "“" would have become "\textdblquote" in the LaTeX source. As the new default "input encoding" is utf8, this reason no longer holds. Could you file an enhancement request ticket at bugs.lyx.org? Günter -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: Get unicode output for quotation marks
Le 14/03/2020 à 13:25, Guenter Milde a écrit : With Unicode (utf8) encoding, there should be no need for \texorpdfstring, as the typographical quotes are used in the latex source: >> \section{“Test”} (This is one of the reasons why utf8 is the new default encoding in LyX 2.4.) Only with polyglossia/xetex/luatex (one or more of these), I think. JMarc -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: Get unicode output for quotation marks
On 2020-03-14 13:25, Guenter Milde wrote: On 2020-03-14, Daniel wrote: On 2020-02-24 11:38, Daniel wrote: Hi, Is there a way to get LyX to use unicode for quotation marks? In particular, I am using quotation marks in a section title which generates the following LaTeX code: \section{``Test''} However, I would like it to generate \section{“Test”} The problem is that otherwise the bookmarks in PDFs also show ``Test'' instead of “Test”. I just learned about the LaTeX command \texorpdfstring. Basically, one gives it two arguments where the first is the tex and the second is the one to be used in the bookmarks (pdf). Doesn't look nice in LyX but gets the job done. However, I had to manually switch to unicode encoding to get it to work with the "fancy" quotation marks (Document > Settings > Language). See the attached file. With Unicode (utf8) encoding, there should be no need for \texorpdfstring, as the typographical quotes are used in the latex source: >> \section{“Test”} (This is one of the reasons why utf8 is the new default encoding in LyX 2.4.) No, even with utf8, \section{``Test''} is produced in the latex source. Daniel -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: Get unicode output for quotation marks
On 2020-03-14, Daniel wrote: > On 2020-02-24 11:38, Daniel wrote: >> Hi, >> Is there a way to get LyX to use unicode for quotation marks? >> In particular, I am using quotation marks in a section title which >> generates the following LaTeX code: >> \section{``Test''} >> However, I would like it to generate >> \section{“Test”} >> The problem is that otherwise the bookmarks in PDFs also show ``Test'' >> instead of “Test”. > I just learned about the LaTeX command \texorpdfstring. Basically, one > gives it two arguments where the first is the tex and the second is the > one to be used in the bookmarks (pdf). Doesn't look nice in LyX but gets > the job done. However, I had to manually switch to unicode encoding to > get it to work with the "fancy" quotation marks (Document > Settings > > Language). See the attached file. With Unicode (utf8) encoding, there should be no need for \texorpdfstring, as the typographical quotes are used in the latex source: >> \section{“Test”} (This is one of the reasons why utf8 is the new default encoding in LyX 2.4.) Günter -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: Get unicode output for quotation marks
On 2020-02-24 11:38, Daniel wrote: Hi, Is there a way to get LyX to use unicode for quotation marks? In particular, I am using quotation marks in a section title which generates the following LaTeX code: \section{``Test''} However, I would like it to generate \section{“Test”} The problem is that otherwise the bookmarks in PDFs also show ``Test'' instead of “Test”. Minimal example attached. Daniel I just learned about the LaTeX command \texorpdfstring. Basically, one gives it two arguments where the first is the tex and the second is the one to be used in the bookmarks (pdf). Doesn't look nice in LyX but gets the job done. However, I had to manually switch to unicode encoding to get it to work with the "fancy" quotation marks (Document > Settings > Language). See the attached file. Daniel #LyX 2.3 created this file. For more info see http://www.lyx.org/ \lyxformat 544 \begin_document \begin_header \save_transient_properties true \origin unavailable \textclass article \use_default_options true \maintain_unincluded_children false \language english \language_package default \inputencoding utf8 \fontencoding global \font_roman "default" "default" \font_sans "default" "default" \font_typewriter "default" "default" \font_math "auto" "auto" \font_default_family default \use_non_tex_fonts false \font_sc false \font_osf false \font_sf_scale 100 100 \font_tt_scale 100 100 \use_microtype false \use_dash_ligatures true \graphics default \default_output_format default \output_sync 0 \bibtex_command default \index_command default \paperfontsize default \spacing single \use_hyperref true \pdf_bookmarks true \pdf_bookmarksnumbered false \pdf_bookmarksopen false \pdf_bookmarksopenlevel 1 \pdf_breaklinks false \pdf_pdfborder false \pdf_colorlinks false \pdf_backref false \pdf_pdfusetitle true \papersize default \use_geometry false \use_package amsmath 1 \use_package amssymb 1 \use_package cancel 1 \use_package esint 1 \use_package mathdots 1 \use_package mathtools 1 \use_package mhchem 1 \use_package stackrel 1 \use_package stmaryrd 1 \use_package undertilde 1 \cite_engine basic \cite_engine_type default \biblio_style plain \use_bibtopic false \use_indices false \paperorientation portrait \suppress_date false \justification true \use_refstyle 1 \use_minted 0 \index Index \shortcut idx \color #008000 \end_index \secnumdepth 3 \tocdepth 3 \paragraph_separation indent \paragraph_indentation default \is_math_indent 0 \math_numbering_side default \quotes_style english \dynamic_quotes 0 \papercolumns 1 \papersides 1 \paperpagestyle default \tracking_changes false \output_changes false \html_math_output 0 \html_css_as_file 0 \html_be_strict false \end_header \begin_body \begin_layout Section \begin_inset ERT status open \begin_layout Plain Layout \backslash texorpdfstring{ \end_layout \end_inset \begin_inset Quotes eld \end_inset Test \begin_inset Quotes erd \end_inset \begin_inset ERT status open \begin_layout Plain Layout }{“Test”} \end_layout \end_inset \end_layout \end_body \end_document -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: Get unicode output for quotation marks
On 2020-02-24, Daniel wrote: > On 2020-02-24 14:08, Jean-Marc Lasgouttes wrote: >> Le 24/02/2020 à 13:34, Daniel a écrit : >>> Ah, I see. LyX actually does not use the unicode characters “ and ” >>> but \textquotedblleft and \textquotedblright{} when I insert the >>> unicode character. This is because in older versions of the inputenc package, the literal characters were not supported. You may try to copy the file "unicodesymbols" from the LyX library directory (here /usr/local/src/lyx/lib/) to your personal lyx directory (here ~/.lyx/) and comment out the lines #0x201c "\\textquotedblleft" "" "" # LEFT DOUBLE QUOTATION MARK #0x201d "\\textquotedblright" "" "" # RIGHT DOUBLE QUOTATION MARK and try again. Hope this helps, Günter -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: Get unicode output for quotation marks
On 2020-02-24 14:08, Jean-Marc Lasgouttes wrote: Le 24/02/2020 à 13:34, Daniel a écrit : Ah, I see. LyX actually does not use the unicode characters “ and ” but \textquotedblleft and \textquotedblright{} when I insert the unicode character. So, I guess what I want is to have `` and '' be replaced by those commands. Yes, using xetex changes the code preview to usage of unicode. Is it on purpse one cannot useb pdflatex that way? It is a matter of using polyglossia instead of babel, from what I understand. There some things (ligatures, spacing) that are handled with these improves engines, but not the plain pdflatex with babel. I see. Well, pdflatex seems to understand the quotation marks as well plus it solves the problem with the PDF bookmarks. And I guess there are certain problems I might run into when switching from pdflatex to xetex. So the switch isn't costless. 1. If I typeset the document I sent before first with pdflatex and then with xetex I get an error: \babel@aux{english}{} This is the switch from polyglossia to babel and the fact that we keep old aux files to limit the number of TeX runs. I see. Couldn't LyX remember whether the switch has been made and delete those aux files. I guess the error is not a big problem but I was already thinking that it did not work correctly. 2. With xetexThe plain quotation marks show as Mapping=34 in the bookmarks. What bookmarks are you talking about? The PDF bookmarks ("table of content"). Daniel -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: Get unicode output for quotation marks
Le 24/02/2020 à 13:34, Daniel a écrit : Ah, I see. LyX actually does not use the unicode characters “ and ” but \textquotedblleft and \textquotedblright{} when I insert the unicode character. So, I guess what I want is to have `` and '' be replaced by those commands. Yes, using xetex changes the code preview to usage of unicode. Is it on purpse one cannot useb pdflatex that way? It is a matter of using polyglossia instead of babel, from what I understand. There some things (ligatures, spacing) that are handled with these improves engines, but not the plain pdflatex with babel. 1. If I typeset the document I sent before first with pdflatex and then with xetex I get an error: \babel@aux{english}{} This is the switch from polyglossia to babel and the fact that we keep old aux files to limit the number of TeX runs. 2. With xetexThe plain quotation marks show as Mapping=34 in the bookmarks. What bookmarks are you talking about? -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: Get unicode output for quotation marks
Am Mon, 24 Feb 2020 13:44:16 +0100 schrieb Daniel : > On 2020-02-24 13:19, Kornel Benko wrote: > > Am Mon, 24 Feb 2020 13:11:32 +0100 > > schrieb Daniel : > > > >> On 2020-02-24 12:24, Kornel Benko wrote: > >>> Am Mon, 24 Feb 2020 12:16:32 +0100 > >>> schrieb Daniel : > >>> > > M-x unicode-insert 0x201c > > M-x unicode-insert 0x201d > > > > Kornel > > > > > > Yes, that's kind of the manual way. I can also replace “ and ” by itself > with Quick Find and Replace. And I can undo the effect by replacing a > unicode mark with the LyX generated magic one. > > I guess I'd prefer LyX to make the change internally before the output. > But maybe there is no way to tell LyX to do it. > > Daniel > >>> > >>> Why? It is always 'manual', since you have to type '"'. > >>> You could bind the command 'M-x unicode-insert 0x201d' to anything you > >>> like > >>> \bind "F1" "unicode-insert 0x201d" > >>> > >>> Kornel > >>> > >>> > >> > >> Yes, you have to press the '"' key maually. But what I meant with the > >> non-manual magic quotes function of LyX, is that LyX inserts the correct > >> quotation marks austomatically, i.e. “ and ” in the workarea and `` and > >> '' in the source (for English). Now, what I was hoping for is that I can > >> get LyX to automatically use “ and ” not only in the work area but also > >> in the output, i.e. `` and '' should be changed to “ and ”. LaTeX seems > >> to have no problem with the “ and ” characters. > >> > >> Daniel > >> > > > > I don't get it. Do you want same settings for the whole document, or only > > for some parts? > > What is wrong with Document->Settings...>Language->Quote style: ? > > (+ use dynamic quotation marks) > > > > Kornel > > If I see it correctly, using dynamic quotation marks just changes the > marks in the document *when switching the quotation style*. Or if you change the language and set the quotation marks to language default > However, it > does allow to use the unicode characters in the output, i.e. I still get > `` and '' in the bookmarks (in English). > > Daniel > In that case you have to use PDF (luatex) as output. (Or xetex but with 'non-TeX-fonts) Kornel pgp3xxqYSy8R6.pgp Description: Digitale Signatur von OpenPGP -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: Get unicode output for quotation marks
On 2020-02-24 13:44, Daniel wrote: On 2020-02-24 13:19, Kornel Benko wrote: Am Mon, 24 Feb 2020 13:11:32 +0100 schrieb Daniel : On 2020-02-24 12:24, Kornel Benko wrote: Am Mon, 24 Feb 2020 12:16:32 +0100 schrieb Daniel : M-x unicode-insert 0x201c M-x unicode-insert 0x201d Kornel Yes, that's kind of the manual way. I can also replace “ and ” by itself with Quick Find and Replace. And I can undo the effect by replacing a unicode mark with the LyX generated magic one. I guess I'd prefer LyX to make the change internally before the output. But maybe there is no way to tell LyX to do it. Daniel Why? It is always 'manual', since you have to type '"'. You could bind the command 'M-x unicode-insert 0x201d' to anything you like \bind "F1" "unicode-insert 0x201d" Kornel Yes, you have to press the '"' key maually. But what I meant with the non-manual magic quotes function of LyX, is that LyX inserts the correct quotation marks austomatically, i.e. “ and ” in the workarea and `` and '' in the source (for English). Now, what I was hoping for is that I can get LyX to automatically use “ and ” not only in the work area but also in the output, i.e. `` and '' should be changed to “ and ”. LaTeX seems to have no problem with the “ and ” characters. Daniel I don't get it. Do you want same settings for the whole document, or only for some parts? What is wrong with Document->Settings...>Language->Quote style: ? (+ use dynamic quotation marks) Kornel If I see it correctly, using dynamic quotation marks just changes the marks in the document *when switching the quotation style*. However, it does allow to use the unicode characters in the output, i.e. I still get `` and '' in the bookmarks (in English). Daniel "does *not* allow to use the unicode characters in the output" I tried to write... -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: Get unicode output for quotation marks
On 2020-02-24 13:19, Kornel Benko wrote: Am Mon, 24 Feb 2020 13:11:32 +0100 schrieb Daniel : On 2020-02-24 12:24, Kornel Benko wrote: Am Mon, 24 Feb 2020 12:16:32 +0100 schrieb Daniel : M-x unicode-insert 0x201c M-x unicode-insert 0x201d Kornel Yes, that's kind of the manual way. I can also replace “ and ” by itself with Quick Find and Replace. And I can undo the effect by replacing a unicode mark with the LyX generated magic one. I guess I'd prefer LyX to make the change internally before the output. But maybe there is no way to tell LyX to do it. Daniel Why? It is always 'manual', since you have to type '"'. You could bind the command 'M-x unicode-insert 0x201d' to anything you like \bind "F1" "unicode-insert 0x201d" Kornel Yes, you have to press the '"' key maually. But what I meant with the non-manual magic quotes function of LyX, is that LyX inserts the correct quotation marks austomatically, i.e. “ and ” in the workarea and `` and '' in the source (for English). Now, what I was hoping for is that I can get LyX to automatically use “ and ” not only in the work area but also in the output, i.e. `` and '' should be changed to “ and ”. LaTeX seems to have no problem with the “ and ” characters. Daniel I don't get it. Do you want same settings for the whole document, or only for some parts? What is wrong with Document->Settings...>Language->Quote style: ? (+ use dynamic quotation marks) Kornel If I see it correctly, using dynamic quotation marks just changes the marks in the document *when switching the quotation style*. However, it does allow to use the unicode characters in the output, i.e. I still get `` and '' in the bookmarks (in English). Daniel -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: Get unicode output for quotation marks
On 2020-02-24 12:09, Jean-Marc Lasgouttes wrote: Le 24/02/2020 à 11:38, Daniel a écrit : Hi, Is there a way to get LyX to use unicode for quotation marks? In particular, I am using quotation marks in a section title which generates the following LaTeX code: \section{``Test''} However, I would like it to generate \section{“Test”} The problem is that otherwise the bookmarks in PDFs also show ``Test'' instead of “Test”. You should get that if you use xetex/luatex (aka 'Use non-TeX fonts'). JMarc Ah, I see. LyX actually does not use the unicode characters “ and ” but \textquotedblleft and \textquotedblright{} when I insert the unicode character. So, I guess what I want is to have `` and '' be replaced by those commands. Yes, using xetex changes the code preview to usage of unicode. Is it on purpse one cannot useb pdflatex that way? By the way, I noticed two strange things: 1. If I typeset the document I sent before first with pdflatex and then with xetex I get an error: \babel@aux{english}{} The control sequence at the end of the top line of your error message was never \def'ed. If you have misspelled it (e.g., `\hobx'), type `I' and the correct spelling (e.g., `I\hbox'). Otherwise just continue, and I'll forget about whatever was undefined. If I typeset a second time with xetex or straight from the beginning, it works as expected. 2. With xetexThe plain quotation marks show as Mapping=34 in the bookmarks. Daniel -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: Get unicode output for quotation marks
Am Mon, 24 Feb 2020 13:11:32 +0100 schrieb Daniel : > On 2020-02-24 12:24, Kornel Benko wrote: > > Am Mon, 24 Feb 2020 12:16:32 +0100 > > schrieb Daniel : > > > >>> M-x unicode-insert 0x201c > >>> M-x unicode-insert 0x201d > >>> > >>> Kornel > >>> > >>> > >> > >> Yes, that's kind of the manual way. I can also replace “ and ” by itself > >> with Quick Find and Replace. And I can undo the effect by replacing a > >> unicode mark with the LyX generated magic one. > >> > >> I guess I'd prefer LyX to make the change internally before the output. > >> But maybe there is no way to tell LyX to do it. > >> > >> Daniel > > > > Why? It is always 'manual', since you have to type '"'. > > You could bind the command 'M-x unicode-insert 0x201d' to anything you like > > \bind "F1" "unicode-insert 0x201d" > > > > Kornel > > > > > > Yes, you have to press the '"' key maually. But what I meant with the > non-manual magic quotes function of LyX, is that LyX inserts the correct > quotation marks austomatically, i.e. “ and ” in the workarea and `` and > '' in the source (for English). Now, what I was hoping for is that I can > get LyX to automatically use “ and ” not only in the work area but also > in the output, i.e. `` and '' should be changed to “ and ”. LaTeX seems > to have no problem with the “ and ” characters. > > Daniel > I don't get it. Do you want same settings for the whole document, or only for some parts? What is wrong with Document->Settings...>Language->Quote style: ? (+ use dynamic quotation marks) Kornel pgpq4Xx9ADJvg.pgp Description: Digitale Signatur von OpenPGP -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: Get unicode output for quotation marks
On 2020-02-24 12:24, Kornel Benko wrote: Am Mon, 24 Feb 2020 12:16:32 +0100 schrieb Daniel : M-x unicode-insert 0x201c M-x unicode-insert 0x201d Kornel Yes, that's kind of the manual way. I can also replace “ and ” by itself with Quick Find and Replace. And I can undo the effect by replacing a unicode mark with the LyX generated magic one. I guess I'd prefer LyX to make the change internally before the output. But maybe there is no way to tell LyX to do it. Daniel Why? It is always 'manual', since you have to type '"'. You could bind the command 'M-x unicode-insert 0x201d' to anything you like \bind "F1" "unicode-insert 0x201d" Kornel Yes, you have to press the '"' key maually. But what I meant with the non-manual magic quotes function of LyX, is that LyX inserts the correct quotation marks austomatically, i.e. “ and ” in the workarea and `` and '' in the source (for English). Now, what I was hoping for is that I can get LyX to automatically use “ and ” not only in the work area but also in the output, i.e. `` and '' should be changed to “ and ”. LaTeX seems to have no problem with the “ and ” characters. Daniel -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: Get unicode output for quotation marks
Am Mon, 24 Feb 2020 12:16:32 +0100 schrieb Daniel : > > M-x unicode-insert 0x201c > > M-x unicode-insert 0x201d > > > > Kornel > > > > > > Yes, that's kind of the manual way. I can also replace “ and ” by itself > with Quick Find and Replace. And I can undo the effect by replacing a > unicode mark with the LyX generated magic one. > > I guess I'd prefer LyX to make the change internally before the output. > But maybe there is no way to tell LyX to do it. > > Daniel Why? It is always 'manual', since you have to type '"'. You could bind the command 'M-x unicode-insert 0x201d' to anything you like \bind "F1" "unicode-insert 0x201d" Kornel pgpCjjSp9W8Qv.pgp Description: Digitale Signatur von OpenPGP -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: Get unicode output for quotation marks
On 2020-02-24 12:04, Kornel Benko wrote: Am Mon, 24 Feb 2020 11:56:09 +0100 schrieb Daniel : On 2020-02-24 11:46, Kornel Benko wrote: Am Mon, 24 Feb 2020 11:38:14 +0100 schrieb Daniel : Hi, Is there a way to get LyX to use unicode for quotation marks? In particular, I am using quotation marks in a section title which generates the following LaTeX code: \section{``Test''} However, I would like it to generate \section{“Test”} The problem is that otherwise the bookmarks in PDFs also show ``Test'' instead of “Test”. Minimal example attached. Daniel Insert->Special char-> Plain Quotation Mark Kornel Thanks. But these quotation marks are actually visually different from proper opening and closing quotation marks both on the PDF and in its bookmarks. I've attached all versions I tried so far. The last are the ones I would like to see LyX produce for me in the output, hopefully, without me having to use different quotes in the document. Daniel M-x unicode-insert 0x201c M-x unicode-insert 0x201d Kornel Yes, that's kind of the manual way. I can also replace “ and ” by itself with Quick Find and Replace. And I can undo the effect by replacing a unicode mark with the LyX generated magic one. I guess I'd prefer LyX to make the change internally before the output. But maybe there is no way to tell LyX to do it. Daniel -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: Get unicode output for quotation marks
Le 24/02/2020 à 11:38, Daniel a écrit : Hi, Is there a way to get LyX to use unicode for quotation marks? In particular, I am using quotation marks in a section title which generates the following LaTeX code: \section{``Test''} However, I would like it to generate \section{“Test”} The problem is that otherwise the bookmarks in PDFs also show ``Test'' instead of “Test”. You should get that if you use xetex/luatex (aka 'Use non-TeX fonts'). JMarc -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: Get unicode output for quotation marks
Am Mon, 24 Feb 2020 11:56:09 +0100 schrieb Daniel : > On 2020-02-24 11:46, Kornel Benko wrote: > > Am Mon, 24 Feb 2020 11:38:14 +0100 > > schrieb Daniel : > > > >> Hi, > >> > >> Is there a way to get LyX to use unicode for quotation marks? > >> > >> In particular, I am using quotation marks in a section title which > >> generates the following LaTeX code: > >> > >> \section{``Test''} > >> > >> However, I would like it to generate > >> > >> \section{“Test”} > >> > >> The problem is that otherwise the bookmarks in PDFs also show ``Test'' > >> instead of “Test”. > >> > >> Minimal example attached. > >> > >> Daniel > > > > Insert->Special char-> Plain Quotation Mark > > > > Kornel > > > > > > Thanks. But these quotation marks are actually visually different from > proper opening and closing quotation marks both on the PDF and in its > bookmarks. > > I've attached all versions I tried so far. The last are the ones I would > like to see LyX produce for me in the output, hopefully, without me > having to use different quotes in the document. > > Daniel M-x unicode-insert 0x201c M-x unicode-insert 0x201d Kornel pgpTEo3Immakp.pgp Description: Digitale Signatur von OpenPGP -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: Get unicode output for quotation marks
On 2020-02-24 11:46, Kornel Benko wrote: Am Mon, 24 Feb 2020 11:38:14 +0100 schrieb Daniel : Hi, Is there a way to get LyX to use unicode for quotation marks? In particular, I am using quotation marks in a section title which generates the following LaTeX code: \section{``Test''} However, I would like it to generate \section{“Test”} The problem is that otherwise the bookmarks in PDFs also show ``Test'' instead of “Test”. Minimal example attached. Daniel Insert->Special char-> Plain Quotation Mark Kornel Thanks. But these quotation marks are actually visually different from proper opening and closing quotation marks both on the PDF and in its bookmarks. I've attached all versions I tried so far. The last are the ones I would like to see LyX produce for me in the output, hopefully, without me having to use different quotes in the document. Daniel #LyX 2.3 created this file. For more info see http://www.lyx.org/ \lyxformat 544 \begin_document \begin_header \save_transient_properties true \origin unavailable \textclass article \use_default_options true \maintain_unincluded_children false \language english \language_package default \inputencoding auto \fontencoding global \font_roman "default" "default" \font_sans "default" "default" \font_typewriter "default" "default" \font_math "auto" "auto" \font_default_family default \use_non_tex_fonts false \font_sc false \font_osf false \font_sf_scale 100 100 \font_tt_scale 100 100 \use_microtype false \use_dash_ligatures true \graphics default \default_output_format default \output_sync 0 \bibtex_command default \index_command default \paperfontsize default \spacing single \use_hyperref true \pdf_bookmarks true \pdf_bookmarksnumbered false \pdf_bookmarksopen false \pdf_bookmarksopenlevel 1 \pdf_breaklinks false \pdf_pdfborder false \pdf_colorlinks false \pdf_backref false \pdf_pdfusetitle true \papersize default \use_geometry false \use_package amsmath 1 \use_package amssymb 1 \use_package cancel 1 \use_package esint 1 \use_package mathdots 1 \use_package mathtools 1 \use_package mhchem 1 \use_package stackrel 1 \use_package stmaryrd 1 \use_package undertilde 1 \cite_engine basic \cite_engine_type default \biblio_style plain \use_bibtopic false \use_indices false \paperorientation portrait \suppress_date false \justification true \use_refstyle 1 \use_minted 0 \index Index \shortcut idx \color #008000 \end_index \secnumdepth 3 \tocdepth 3 \paragraph_separation indent \paragraph_indentation default \is_math_indent 0 \math_numbering_side default \quotes_style english \dynamic_quotes 0 \papercolumns 1 \papersides 1 \paperpagestyle default \tracking_changes false \output_changes false \html_math_output 0 \html_css_as_file 0 \html_be_strict false \end_header \begin_body \begin_layout Section \begin_inset Quotes eld \end_inset LyX's magic quotation marks \begin_inset Quotes erd \end_inset \end_layout \begin_layout Section \begin_inset Quotes qld \end_inset LyX's plain quotation marks \begin_inset Quotes qrd \end_inset \end_layout \begin_layout Section “Manually inserted unicode quotation marks” \end_layout \end_body \end_document -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: Get unicode output for quotation marks
Am Mon, 24 Feb 2020 11:38:14 +0100 schrieb Daniel : > Hi, > > Is there a way to get LyX to use unicode for quotation marks? > > In particular, I am using quotation marks in a section title which > generates the following LaTeX code: > > \section{``Test''} > > However, I would like it to generate > > \section{“Test”} > > The problem is that otherwise the bookmarks in PDFs also show ``Test'' > instead of “Test”. > > Minimal example attached. > > Daniel Insert->Special char-> Plain Quotation Mark Kornel pgpwlBCePCcvD.pgp Description: Digitale Signatur von OpenPGP -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Get unicode output for quotation marks
Hi, Is there a way to get LyX to use unicode for quotation marks? In particular, I am using quotation marks in a section title which generates the following LaTeX code: \section{``Test''} However, I would like it to generate \section{“Test”} The problem is that otherwise the bookmarks in PDFs also show ``Test'' instead of “Test”. Minimal example attached. Daniel #LyX 2.3 created this file. For more info see http://www.lyx.org/ \lyxformat 544 \begin_document \begin_header \save_transient_properties true \origin unavailable \textclass article \use_default_options true \maintain_unincluded_children false \language english \language_package default \inputencoding auto \fontencoding global \font_roman "default" "default" \font_sans "default" "default" \font_typewriter "default" "default" \font_math "auto" "auto" \font_default_family default \use_non_tex_fonts false \font_sc false \font_osf false \font_sf_scale 100 100 \font_tt_scale 100 100 \use_microtype false \use_dash_ligatures true \graphics default \default_output_format default \output_sync 0 \bibtex_command default \index_command default \paperfontsize default \spacing single \use_hyperref true \pdf_bookmarks true \pdf_bookmarksnumbered false \pdf_bookmarksopen false \pdf_bookmarksopenlevel 1 \pdf_breaklinks false \pdf_pdfborder false \pdf_colorlinks false \pdf_backref false \pdf_pdfusetitle true \papersize default \use_geometry false \use_package amsmath 1 \use_package amssymb 1 \use_package cancel 1 \use_package esint 1 \use_package mathdots 1 \use_package mathtools 1 \use_package mhchem 1 \use_package stackrel 1 \use_package stmaryrd 1 \use_package undertilde 1 \cite_engine basic \cite_engine_type default \biblio_style plain \use_bibtopic false \use_indices false \paperorientation portrait \suppress_date false \justification true \use_refstyle 1 \use_minted 0 \index Index \shortcut idx \color #008000 \end_index \secnumdepth 3 \tocdepth 3 \paragraph_separation indent \paragraph_indentation default \is_math_indent 0 \math_numbering_side default \quotes_style english \dynamic_quotes 0 \papercolumns 1 \papersides 1 \paperpagestyle default \tracking_changes false \output_changes false \html_math_output 0 \html_css_as_file 0 \html_be_strict false \end_header \begin_body \begin_layout Section \begin_inset Quotes eld \end_inset Test \begin_inset Quotes erd \end_inset \end_layout \end_body \end_document -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users