Re: Conversion error to MS-Word Office-Open XML / OpenDocument (pandoc)

2020-11-12 Thread V K
There was an error delivering mail to Andre, so I am replaying to list.

Your message was: 
Now I tried to execute in the terminal with a csl-file (all in the same 
directory) after having created a tex-file: pandoc -s --filter pandoc-citeproc 
--csl sociology.csl -f latex -o mydocument.docx -t docx Test.tex 
Then an error message appears: [WARNING] Deprecated: pandoc-citeproc filter. 
Use --citeproc instead. pandoc-citeproc: Error in $: Incompatible API versions: 
encoded with [1,22] but attempted to decode with [1,17,5,4]. CallStack (from 
HasCallStack): error, called at ./Text/Pandoc/JSON.hs:111:48 in 
pandoc-types-1.17.5.4-5tHZ3B61A58JaKOMxwGQR4:Text.Pandoc.JSON Error running 
filter pandoc-citeproc: Filter returned error status 1 
When I just use citeproc: pandoc -s --filter citeproc --csl sociology.csl -f 
latex -o mydocument.docx -t docx Test.tex cx -t docx Test.tex Error running 
filter citeproc: Could not find executable citeproc

I know nothing about the source of the first error, second error is because you 
not included -- before citeproc, so command should be: pandoc -s --filter 
--citeproc --csl sociology.csl -f latex -o mydocument.docx -t docx Test.tex 

Valdemaras
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Conversion error to MS-Word Office-Open XML / OpenDocument (pandoc)

2020-11-12 Thread V K







On Thursday, November 12, 2020, 10:56:30 PM GMT+2, André Jäger 
 wrote: 








Hello,

I have LyX Version 2.3.4.2 on Ubuntu 20.04.1 LTS.

I have to export a LYX-Document to MSWord. The document is encoded with Unicode 
(utf8), and the converter-definition LaTEX (plain) -> MS-Word Office-Open XML 
is set to:

pandoc -s -f latex -o $$o -t docx $$i

That works. In order to export a bibliogrphy, I changed the 
converter-defitiontio to:

pandoc -s -filter pandoc-citeproc -f latex -o $$o -t docx $$i

Without having added a citation and bibliography (I did not change the 
document), the error-message appears: An error occurred while running: pandoc 
-s -filter pandoc-citeproc -f latex -o "test.docx" -t docx "test.tex" 

The document did not change, still encoded with Unicode (utf8), there is no 
bibliography inserted that might contain an error, and pandoc-citeproc is 
installed.

The same happens for an export to OpenDocument (pandoc) with converter: pandoc 
-s --filter pandoc-citeproc -f latex -o $$o -t odt $$i 

Does someone have an idea what do do?

Thank you, and thanks for the wonderful program. (I am new to LYX and in the 
beginning to work with it).

Thank you, André 



-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users




Hello.

You should indicate which style of bibliography you want to use.  So instead 
pandoc -s -filter pandoc-citeproc -f latex -o "test.docx" -t docx "test.tex" 
there should be something like that:
pandoc -s -filter pandoc-citeproc --csl 
zeitschrift-fur-ostmitteleuropa-forschung.csl -f latex -o "test.docx" -t docx 
"test.tex" File zeitschrift-fur-ostmitteleuropa-forschung.csl should be in the 
same directory as lyx file or you should indicate full path of the csl file. 
And of course, there can be whatever csl file – it depends on style you need.

Best regards,

Valdemaras
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Conversion error to MS-Word Office-Open XML / OpenDocument (pandoc)

2020-11-12 Thread André Jäger

Hello,

I have LyX Version 2.3.4.2 on Ubuntu 20.04.1 LTS.

I have to export a LYX-Document to MSWord. The document is encoded with
Unicode (utf8), and the converter-definition LaTEX (plain) -> MS-Word
Office-Open XML is set to:||

pandoc -s -f latex -o $$o -t docx $$i

That works. In order to export a bibliogrphy, I changed the
converter-defitiontio to:

pandoc -s -filter pandoc-citeproc -f latex -o $$o -t docx $$i

Without having added a citation and bibliography (I did not change the
document), the error-message appears: An error occurred while running:
pandoc -s -filter pandoc-citeproc -f latex -o "test.docx" -t docx
"test.tex"

The document did not change, still encoded with Unicode (utf8), there is
no bibliography inserted that might contain an error, and
pandoc-citeproc is installed.

The same happens for an export to OpenDocument (pandoc) with converter:
pandoc -s --filter pandoc-citeproc -f latex -o $$o -t odt $$i

Does someone have an idea what do do?

Thank you, and thanks for the wonderful program. (I am new to LYX and in
the beginning to work with it).

Thank you, André

-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: [Help] Can't get what I want with the enumitem module. Need Help…

2020-11-12 Thread Paul A. Rubin

On 11/12/20 7:29 AM, didiergab...@free.fr wrote:

Hello,

The pdf shows the alignment issue which I cannot resolve. I tried to 
understand the doc of the enumitem package but how to say... Not very 
easy...


As you can see the label of the first item, in second level enumerate, 
is shifted to the right ...


I attach a mwe in lyx as well as the generated tex.


Here are the lines entered in the preamble:

\setlist[enumerate]{font=\bfseries}
\setlist[enumerate,1]{label=\textbf{\emph{Q\,\arabic*.}}, %
labelwidth=30pt, align=left, labelsep*=2pt,leftmargin=0pt, %
labelindent=0pt, itemindent=!, listparindent=0pt}
\setlist[enumerate,2]{label=\emph{\alph*)}, %
labelwidth=10pt, align=left, labelsep*=2pt,leftmargin=30pt,%
labelindent=30pt, itemindent=!, listparindent=0pt}


Thanks for your help.

Didier.


I don't know the correct way to do this, but the attached hack seems to 
get the job done. The vertical spacing adjustment (-17pt), which brings 
the first item of the inner list onto the same line as the outer list 
label, was done by trial and error and may not line up perfectly. There 
likely is a better way to get the correct value, but it is (way) beyond 
my LaTeX skills.


Paul



test_enumerate.lyx
Description: application/lyx
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


no accents with dead keys (SOLVED)

2020-11-12 Thread jorge hernando
A few more pieces on the puzzle of the dead keys

 1) Does not depend on the linux distribution, Flavio de Melo in his mail
wrote that he has Ubuntu 18.04 and I have Fedora 32
2) Does not depend on the desktop; in my PC i use mate but I can also use
gnome. With both desktops there is no dead keys at all.
3) This is intriguing. Both in mate and in gnome when I save a file with a
new name, the dead keys work perfectly on the name, I can use accents in
it. Perhaps there is a clue in the difference between both calls.

That's all for the moment. Regards

Jorge
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


[Help] Can't get what I want with the enumitem module. Need Help…

2020-11-12 Thread didiergabory



Hello, 


The pdf shows the alignment issue which I cannot resolve. I tried to understand 
the doc of the enumitem package but how to say... Not very easy... 

As you can see the label of the first item, in second level enumerate, is 
shifted to the right ... 

I attach a mwe in lyx as well as the generated tex. 



Here are the lines entered in the preamble: 


\setlist[enumerate]{font=\bfseries} 
\setlist[enumerate,1]{label=\textbf{\emph{Q\,\arabic*.}}, % 
labelwidth=30pt, align=left, labelsep*=2pt, leftmargin=0pt, % 
labelindent=0pt, itemindent=!, listparindent=0pt} 
\setlist[enumerate,2]{label=\emph{\alph*)}, % 
labelwidth=10pt, align=left, labelsep*=2pt,leftmargin=30pt,% 
labelindent=30pt, itemindent=!, listparindent=0pt} 



Thanks for your help. 


Didier. 



test_enumerate.lyx
Description: application/lyx


test_enumerate.pdf
Description: Adobe PDF document
%% LyX 2.3.5.2 created this file.  For more info, see http://www.lyx.org/.
%% Do not edit unless you really know what you are doing.
\documentclass[french]{scrartcl}
\usepackage[T1]{fontenc}
\usepackage[latin9]{inputenc}
\setlength{\parskip}{\smallskipamount}
\setlength{\parindent}{0pt}
\usepackage{enumitem}

\makeatletter
%% Textclass specific LaTeX commands.
\newlength{\lyxlabelwidth}  % auxiliary length 

%% User specified LaTeX commands.
\usepackage{lipsum}

\setlist[enumerate]{font=\bfseries}
\setlist[enumerate,1]{label=\textbf{\emph{Q\,\arabic*.}}, labelwidth=30pt, align=left, labelsep*=2pt, leftmargin=0pt, labelindent=0pt, itemindent=!, listparindent=0pt}
\setlist[enumerate,2]{label=\emph{\alph*)}, labelwidth=10pt, align=left, labelsep*=2pt,leftmargin=30pt, labelindent=30pt, itemindent=!, listparindent=0pt}

\makeatother

\usepackage{babel}
\makeatletter
\addto\extrasfrench{%
   \providecommand{\og}{\leavevmode\flqq~}%
   \providecommand{\fg}{\ifdim\lastskip>\z@\unskip\fi~\frqq}%
}

\makeatother
\begin{document}

\section*{Essai custum enumerate}

\lipsum[2][2-4]
\begin{enumerate}
\item \lipsum[1][2-4]
\begin{enumerate}
\item \lipsum[1][2-4]
\item \lipsum[1][2-4]
\end{enumerate}
\end{enumerate}
\lipsum[1][2-4]
\begin{enumerate}[resume]
\item 
\begin{enumerate}
\item \lipsum[1][2-4]
\item \lipsum[1][2-4]
\item \lipsum[1][2-4]
\end{enumerate}
\item \lipsum[1][2-4]
\end{enumerate}

\end{document}
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users