Re: [ Lyx Module syntaxe ? ] Need help for a custom enumerate style module.

2020-11-19 Thread didiergabory
- Mail original -

| On 11/15/20 12:37 PM, didiergab...@free.fr wrote:

| | Hi,
| 

| | For the first time I try to write a LYX module corresponding to a
| | custom enumerate style (with two levels).
| 
| | I use the article Koma class with enumitem.sty package (I try…)
| 

| | I encounter a problem :
| 

| | * In the Lyx interface the 1rst level counter returns to the
| | initial
| | value on paragraph breaks. I am unable to mimic the correct
| | behavior
| | visible in the pdfLatex export produce by Lyx.
| 

| I believe this has been solved for 2.4.0. In 2.3.x, yes, there's no
| way to mimic the LaTeX output.

| Riki

Thanks for reading me. 

I will patiently wait for the new version… 

ps: 

Please disregard the first version of this email posted on November 14th. It 
was initially blocked due to attachments that are too large and I have not 
received a notification... In the meantime I have fixed one of the concerns and 
this first version should not have existed in the end. 
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Fwd: [ Lyx Module syntaxe ? ] Need help for a custom enumerate style module.

2020-11-15 Thread didiergabory



Hi, 


For the first time I try to write a LYX module corresponding to a custom 
enumerate style (with two levels). 
I use the article Koma class with enumitem.sty package (I try…) 



I encounter a problem : 


* In the Lyx interface the 1rst level counter returns to the initial value 
on paragraph breaks. I am unable to mimic the correct behavior visible in the 
pdfLatex export produce by Lyx. 


I place: 



* the mwe on lyx; 
* my poor Mes_listes_CPGE.module file; 



I hope to find some help here to move forward. 


Didier 







Mes_listes_CPGE.module
Description: Binary data


test_mon_module.lyx
Description: application/lyx
-- 
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-14 Thread didiergabory
Thank you Paul for your help and for your time reading me.
I keep your solution while waiting for something better.
I would prefer, as you understood, to change the part written in preamble… 

Didier 

- Mail original -

| 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

| --
| lyx-users mailing list
| lyx-users@lists.lyx.org
| http://lists.lyx.org/mailman/listinfo/lyx-users
-- 
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


Re: Lyx2.1 problem with metafile2eps converter

2014-05-13 Thread didiergabory
Hi,

Today I try again... And every thing works correctly... I can't reproduce the 
error.

Thanks for your answers (sorry for waste of time)

- Mail original -
De: aparsloe apars...@clear.net.nz
À: lyx-users@lists.lyx.org
Envoyé: Mardi 13 Mai 2014 09:44:45
Objet: Re: Lyx2.1 problem with metafile2eps converter


On 13/05/2014 7:46 a.m., Georg Baum wrote:
 aparsloe wrote:

 On 11/05/2014 8:31 a.m., didiergab...@free.fr wrote:
 Hi,

 I have problem wth lyx2.1 (on windows 7 64bits)... I often copy images
 from adobe reader with the embedded tool and paste directly on lyx
 (ctrl+V)... I have a error message Can not open Metafle to EPS converter
 printer (without i on Metafle :o)

 When I try the conversion directly from Lyx2.1 dir\bin\metafile2eps.exe
 the same error occur... Any idea ?
 Is the virtual printer installed which is used by metafile2eps.exe? Maybe
 something wnet wrong during installation.

 I've also got LyX2.1 on  64 bit Windows 7, and Adobe Reader X, and the
 copy and paste works without problems, so this looks like a problem at
 your end rather than with LyX.
 Also for copying vector images? metafile2eps.exe is not used for bitmap
 images or text. You can easily see whether a vector imagtes was copied by
 looking at the type of the copied image: If it is eps, the original image
 was in vector format, and metafile2eps.exe worked.


 Georg
I was hasty in my response. In Adobe Reader X, under the Edit menu, 
there's the option Take a Snapshot. I assume this is the embedded tool 
referred to. When I copy a figure from the pdf and then go to paste it 
into LyX I get asked first to save the file, always as an .emf file 
although that can be changed to .png if I wish. The first one I paste 
into LyX reproduces the copied figure. Copying and pasting other figures 
(after saving in .emf format) generally insert into LyX  figures that 
are about 25 times too big. I have to scale to about 4% for the Adobe 
-- LyX -- Adobe round trip to reproduce a figure about the size of the 
original. But this doesn't happen always and seems to depend on whether 
I've saved a file at some point as .png (which seems to paste at the 
right size). So, it works for a one-off, but clearly not flawlessly for 
a number of copy-pastes.

Andrew


Re: Lyx2.1 problem with metafile2eps converter

2014-05-13 Thread didiergabory
Hi,

Today I try again... And every thing works correctly... I can't reproduce the 
error.

Thanks for your answers (sorry for waste of time)

- Mail original -
De: aparsloe apars...@clear.net.nz
À: lyx-users@lists.lyx.org
Envoyé: Mardi 13 Mai 2014 09:44:45
Objet: Re: Lyx2.1 problem with metafile2eps converter


On 13/05/2014 7:46 a.m., Georg Baum wrote:
 aparsloe wrote:

 On 11/05/2014 8:31 a.m., didiergab...@free.fr wrote:
 Hi,

 I have problem wth lyx2.1 (on windows 7 64bits)... I often copy images
 from adobe reader with the embedded tool and paste directly on lyx
 (ctrl+V)... I have a error message Can not open Metafle to EPS converter
 printer (without i on Metafle :o)

 When I try the conversion directly from Lyx2.1 dir\bin\metafile2eps.exe
 the same error occur... Any idea ?
 Is the virtual printer installed which is used by metafile2eps.exe? Maybe
 something wnet wrong during installation.

 I've also got LyX2.1 on  64 bit Windows 7, and Adobe Reader X, and the
 copy and paste works without problems, so this looks like a problem at
 your end rather than with LyX.
 Also for copying vector images? metafile2eps.exe is not used for bitmap
 images or text. You can easily see whether a vector imagtes was copied by
 looking at the type of the copied image: If it is eps, the original image
 was in vector format, and metafile2eps.exe worked.


 Georg
I was hasty in my response. In Adobe Reader X, under the Edit menu, 
there's the option Take a Snapshot. I assume this is the embedded tool 
referred to. When I copy a figure from the pdf and then go to paste it 
into LyX I get asked first to save the file, always as an .emf file 
although that can be changed to .png if I wish. The first one I paste 
into LyX reproduces the copied figure. Copying and pasting other figures 
(after saving in .emf format) generally insert into LyX  figures that 
are about 25 times too big. I have to scale to about 4% for the Adobe 
-- LyX -- Adobe round trip to reproduce a figure about the size of the 
original. But this doesn't happen always and seems to depend on whether 
I've saved a file at some point as .png (which seems to paste at the 
right size). So, it works for a one-off, but clearly not flawlessly for 
a number of copy-pastes.

Andrew


Re: Lyx2.1 problem with metafile2eps converter

2014-05-13 Thread didiergabory
Hi,

Today I try again... And every thing works correctly... I can't reproduce the 
error.

Thanks for your answers (sorry for waste of time)

- Mail original -
De: "aparsloe" 
À: lyx-users@lists.lyx.org
Envoyé: Mardi 13 Mai 2014 09:44:45
Objet: Re: Lyx2.1 problem with metafile2eps converter


On 13/05/2014 7:46 a.m., Georg Baum wrote:
> aparsloe wrote:
>
>> On 11/05/2014 8:31 a.m., didiergab...@free.fr wrote:
>>> Hi,
>>>
>>> I have problem wth lyx2.1 (on windows 7 64bits)... I often copy images
>>> from adobe reader with the embedded tool and paste directly on lyx
>>> (ctrl+V)... I have a error message "Can not open Metafle to EPS converter
>>> printer" (without "i" on "Metafle" :o)
>>>
>>> When I try the conversion directly from Lyx2.1 dir\bin\metafile2eps.exe
>>> the same error occur... Any idea ?
> Is the virtual printer installed which is used by metafile2eps.exe? Maybe
> something wnet wrong during installation.
>
>> I've also got LyX2.1 on  64 bit Windows 7, and Adobe Reader X, and the
>> copy and paste works without problems, so this looks like a problem at
>> your end rather than with LyX.
> Also for copying vector images? metafile2eps.exe is not used for bitmap
> images or text. You can easily see whether a vector imagtes was copied by
> looking at the type of the copied image: If it is eps, the original image
> was in vector format, and metafile2eps.exe worked.
>
>
> Georg
I was hasty in my response. In Adobe Reader X, under the Edit menu, 
there's the option Take a Snapshot. I assume this is the "embedded tool" 
referred to. When I copy a figure from the pdf and then go to paste it 
into LyX I get asked first to save the file, always as an .emf file 
although that can be changed to .png if I wish. The first one I paste 
into LyX reproduces the copied figure. Copying and pasting other figures 
(after saving in .emf format) generally insert into LyX  figures that 
are about 25 times too big. I have to scale to about 4% for the Adobe 
--> LyX --> Adobe round trip to reproduce a figure about the size of the 
original. But this doesn't happen always and seems to depend on whether 
I've saved a file at some point as .png (which seems to paste at the 
right size). So, it works for a one-off, but clearly not flawlessly for 
a number of copy-pastes.

Andrew


Lyx2.1 problem with metafile2eps converter

2014-05-10 Thread didiergabory
Hi,

I have problem wth lyx2.1 (on windows 7 64bits)... I often copy images from 
adobe reader with the embedded tool and paste directly on lyx (ctrl+V)... I 
have a error message Can not open Metafle to EPS converter printer (without 
i on Metafle :o)

When I try the conversion directly from Lyx2.1 dir\bin\metafile2eps.exe the 
same error occur... Any idea ?

Thanks

Didier


Lyx2.1 problem with metafile2eps converter

2014-05-10 Thread didiergabory
Hi,

I have problem wth lyx2.1 (on windows 7 64bits)... I often copy images from 
adobe reader with the embedded tool and paste directly on lyx (ctrl+V)... I 
have a error message Can not open Metafle to EPS converter printer (without 
i on Metafle :o)

When I try the conversion directly from Lyx2.1 dir\bin\metafile2eps.exe the 
same error occur... Any idea ?

Thanks

Didier


Lyx2.1 problem with metafile2eps converter

2014-05-10 Thread didiergabory
Hi,

I have problem wth lyx2.1 (on windows 7 64bits)... I often copy images from 
adobe reader with the embedded tool and paste directly on lyx (ctrl+V)... I 
have a error message "Can not open Metafle to EPS converter printer" (without 
"i" on "Metafle" :o)

When I try the conversion directly from Lyx2.1 dir\bin\metafile2eps.exe the 
same error occur... Any idea ?

Thanks

Didier