Hello.
 I quite often need export form Lyx to docx.So I installed Pandoc, converted 
document to docx and... lost all opening quote signs. They are in pdf, 
generated by Lyx, but not in exported docx or odt.
I tested simple lyx file (attached) changing only language of document in Lyx 
settings.  It is all right with all quote signs in English or Italian, bad with 
Lithuanian (my language) and some other languages. So that is language 
dependant. 
After exporting file to plain LaTeX I see what is going wrong. The same text 
with outer and inner quotes:
In English: ``Outer quote `inner quote'{}'' – Result: I can see all quote signs.
In Italian: <<Outer quote ``inner quote''>> – all quote signs.In Lithuanian: 
\glqq Outer quote \glq inner quote`{}``– I see only closing sings of quotes.
In German, Latvian, Estonian, Polish: ,,Outer quote \quotesinglbase inner 
quote`{}`` – can't see  inner opening quote sign.In Russian: \guillemotleft 
Outer quote \quotedblbase inner quote``\guillemotright – only closing mark of 
inner quote can be seen.In French: \og Outer quote ``inner quote''\fg – only 
inner quotes can be seen.Tex files attached. Pdf generated from them with 
pdflatex are correct, with all quote marks.

So it is obvious that Pandoc understands only quotes signs, but not, how to 
say, commands, it doesn't convert all the \og, \guillemotleft, \quotesinglbase, 
\glqq and so on, but perfectly convert signs `` '' << etc.Using csquotes 
package change nothing. Maybe I should load other package? 


Now I export file to tex, change \glqq to ,,  \glq to , in it and convert tex 
to docx with pandoc. Maybe there is some other solutions? Or maybe I am doing 
wrong something?

It's Pandoc problem  more than Lyx and I can open issue in Pandoc github. But 
maybe it could be considered as Lyx bug? Can Lyx export to tex only quotes 
signs in all languages (as in English or Italian), but not commands? That would 
add more consistency to tex file generated by lyx because now half of quote 
signs represented in signs and half – in commands in the same language.

And thank all developers for hard work with this wonderful program.

Best regards,
Valdemaras Klumbys
  
%% LyX 2.3.4 created this file.  For more info, see http://www.lyx.org/.
%% Do not edit unless you really know what you are doing.
\documentclass[12pt,italian]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[a4paper]{geometry}
\geometry{verbose,tmargin=2cm,bmargin=2cm,lmargin=2cm,rmargin=2cm}
\setlength{\parindent}{1.07cm}
\usepackage{babel}
\usepackage{microtype}
\usepackage[unicode=true,
 bookmarks=true,bookmarksnumbered=false,bookmarksopen=false,
 breaklinks=true,pdfborder={0 0 1},backref=false,colorlinks=false]
 {hyperref}

\makeatletter
\@ifundefined{date}{}{\date{}}
\makeatother

\begin{document}
<<Outer quote ``inner quote''>>
\end{document}
%% LyX 2.3.4 created this file.  For more info, see http://www.lyx.org/.
%% Do not edit unless you really know what you are doing.
\documentclass[12pt,english]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[a4paper]{geometry}
\geometry{verbose,tmargin=2cm,bmargin=2cm,lmargin=2cm,rmargin=2cm}
\setlength{\parindent}{1.07cm}
\usepackage{babel}
\usepackage{microtype}
\usepackage[unicode=true,
 bookmarks=true,bookmarksnumbered=false,bookmarksopen=false,
 breaklinks=true,pdfborder={0 0 1},backref=false,colorlinks=false]
 {hyperref}

\makeatletter
\@ifundefined{date}{}{\date{}}
\makeatother

\begin{document}
``Outer quote `inner quote'{}''
\end{document}
%% LyX 2.3.4 created this file.  For more info, see http://www.lyx.org/.
%% Do not edit unless you really know what you are doing.
\documentclass[12pt,ngerman]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[a4paper]{geometry}
\geometry{verbose,tmargin=2cm,bmargin=2cm,lmargin=2cm,rmargin=2cm}
\setlength{\parindent}{1.07cm}
\usepackage{babel}
\usepackage{microtype}
\usepackage[unicode=true,
 bookmarks=true,bookmarksnumbered=false,bookmarksopen=false,
 breaklinks=true,pdfborder={0 0 1},backref=false,colorlinks=false]
 {hyperref}

\makeatletter
\@ifundefined{date}{}{\date{}}
\makeatother

\begin{document}
,,Outer quote \quotesinglbase inner quote`{}``
\end{document}
%% LyX 2.3.4 created this file.  For more info, see http://www.lyx.org/.
%% Do not edit unless you really know what you are doing.
\documentclass[12pt,russian]{article}
\usepackage[T1,T2A]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[a4paper]{geometry}
\geometry{verbose,tmargin=2cm,bmargin=2cm,lmargin=2cm,rmargin=2cm}
\setlength{\parindent}{1.07cm}
\usepackage{babel}
\usepackage{microtype}
\usepackage[unicode=true,
 bookmarks=true,bookmarksnumbered=false,bookmarksopen=false,
 breaklinks=true,pdfborder={0 0 1},backref=false,colorlinks=false]
 {hyperref}

\makeatletter
\@ifundefined{date}{}{\date{}}
\makeatother

\begin{document}
\guillemotleft Outer quote \quotedblbase inner quote``\guillemotright
\end{document}
%% LyX 2.3.4 created this file.  For more info, see http://www.lyx.org/.
%% Do not edit unless you really know what you are doing.
\documentclass[12pt]{article}
\usepackage[T1,L7x]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[a4paper]{geometry}
\geometry{verbose,tmargin=2cm,bmargin=2cm,lmargin=2cm,rmargin=2cm}
\setlength{\parindent}{1.07cm}
\usepackage[lithuanian]{babel}
\usepackage{microtype}
\usepackage[unicode=true,
 bookmarks=true,bookmarksnumbered=false,bookmarksopen=false,
 breaklinks=true,pdfborder={0 0 1},backref=false,colorlinks=false]
 {hyperref}

\makeatletter
\@ifundefined{date}{}{\date{}}
\makeatother

\begin{document}
\glqq Outer quote \glq inner quote`{}``
\end{document}

Attachment: quotes.lyx
Description: application/lyx

%% LyX 2.3.4 created this file.  For more info, see http://www.lyx.org/.
%% Do not edit unless you really know what you are doing.
\documentclass[12pt,french]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[a4paper]{geometry}
\geometry{verbose,tmargin=2cm,bmargin=2cm,lmargin=2cm,rmargin=2cm}
\setlength{\parindent}{1.07cm}
\usepackage{babel}
\makeatletter
\addto\extrasfrench{%
   \providecommand{\og}{\leavevmode\flqq~}%
   \providecommand{\fg}{\ifdim\lastskip>\z@\unskip\fi~\frqq}%
}

\makeatother
\usepackage{microtype}
\usepackage[unicode=true,
 bookmarks=true,bookmarksnumbered=false,bookmarksopen=false,
 breaklinks=true,pdfborder={0 0 1},backref=false,colorlinks=false]
 {hyperref}

\makeatletter
\@ifundefined{date}{}{\date{}}
\makeatother

\begin{document}
\og Outer quote ``inner quote''\fg
\end{document}
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users

Reply via email to