Re: shortcut for going to edge of ERT frame?

2021-08-11 Thread Andrew Parsloe

On 9/08/2021 7:12 am, Paul A. Rubin wrote:

On 8/8/21 2:01 PM, David Pesetsky wrote:
Is there any way to program a key so that if you are typing within an 
ERT frame, it takes the cursor to the last (or first) character in 
that frame?


Also useful would be a way to exit the frame — landing at at the 
first non-ERT character to the left or right of the frame.


-David
You can bind keys to the functions "inset-begin" (positions the cursor 
before the first character in the inset) and "inset-end" (positions 
the cursor after the last character in the inset). In both cases, the 
cursor remains within the inset.


To exit the inset, you can use "command-sequence inset-end; 
char-forward;".


Paul


But there's a catch with using inset-end or inset-begin like this to 
move out of the inset. If the cursor is at the end of the inset already 
then "command-sequence inset-end; char-forward;" will take you to the 
end of an enclosing inset if there is one, or to the end of your 
document if there is not, which can be disconcerting if all you want to 
do is position the cursor immediately after the inset.


command-sequence line-begin; inset-end; char-right;

takes care of the case when the cursor is already at the end of the 
inset (but still produces the big jump to the end of the document if the 
inset is empty).


Andrew

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


Re: Problems related to custom AMS theorem module

2021-07-24 Thread Andrew Parsloe

On 24/07/2021 9:00 am, Paul A. Rubin wrote:

On 7/23/21 4:14 PM, Rudi Gaelzer wrote:


Is there a way to instruct Lyx to write certain auxiliary files into 
the local directory, instead of in /tmp/lyx_tmpdirxxx?



Is it LyX or LaTeX (pdflatex?) that writes the auxiliary files? I 
suspect the latter, in which case I'm pretty sure the answer to your 
question is no. You could create a custom export format and tell LyX 
to invoke a shell script (written by you) that would run whatever 
LaTeX commands were needed and then copy the selected files to the 
local directory (which I believe you can convince LyX to pass as an 
argument to the script). That's complicated enough that you might be 
better off just writing a script that copies the target files to the 
local directory and run it manually after compiling documents.


I haven't followed this thread with any attention so may well have 
missed the point, but I wonder if LyX's copier mechanism is what you 
want? I'm thinking of the script ext_copy.py that comes with LyX (in 
Resources/scripts). For example, to copy the *.aux files back to your 
document directory from the temp directory,  in Tools>Preferences>File 
Handling>File Formats select the format PDF (pdflatex) and in the Copier 
slot put


python -tt $$s/scripts/ext_copy.py -e pdf,aux -d $$i $$o

then click OK. Now when you export to pdf by the pdflatex route, not 
only will you get the pdf in your document directory but also any aux 
files.


If you want to look at the aux files without the burden of compiling to 
pdf, a good trick is to export to Plain text, which is quick even for 
large complex documents, and in the Copier slot under Plain text to enter


python -tt $$s/scripts/ext_copy.py -e aux -d $$i $$o

Notice that only files with the extension aux are to be copied back. 
That means the plain text file resulting from the export, which you are 
unlikely to be interested in, stays in the temp directory and doesn't 
clutter your document directory, but the aux files do get copied back to 
there.


Andrew

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


Re: Command to put string in both the LyX authoring environment and the finished PDF?

2021-06-21 Thread Andrew Parsloe


On 21/06/2021 9:39 am, Steve Litt wrote:

Hi all,

I have a local layout, based on Book-extsizes, for my new book. I have
no idea what the book's title will be yet, and I sure nuff don't want
to have to search all instances of that title and replace them every
time I get a better idea for the title.

S, what I want to do is put something in my local layout to
articulate the title, both in the LyX authoring environment and in the
compiled PDF, showing the title in a specific appearance. I tried to do
it as a character style, as follows:


\definecolor{titlebodytextcolor}{HTML}{cc}

% ### Character style for book title within body text
\newcommand{\chartitlebodytextL}[0]{{\color{titlebodytextcolor}My
Current Title As Of Today}}%

CharStyle CharTitleInBody
Font
Series  Bold
Color   Red
EndFont
LabelFont
Series  Bold
SizeLarger
Color   Red
EndLabelFont
LatexName   chartitlebodytextL
LatexType   Command
LabelString "My Current Title As Of Today"
End


If I apply the character style CharTitleInBody to an empty string in
LyX, the exact right thing happens in the PDF, but in the LyX
authoring environment the title appears under the character style inset
and also under the following text, which is very disturbing if you're
trying to copy-edit your book in the LyX environment.

Does anybody know what I can do to make the text appear inline, instead
of underneath, within the LyX authoring environment?

Thanks,

SteveT


Steve, does adding

Decoration  minimalistic

after CharStyle CharTitleInBody help? Or

Decoration  classic

if you prefer? Your current style uses the CharStyle default decoration  
called conglomerate.


Andrew

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


Re: Pasting latex in a lyx file

2021-04-07 Thread Andrew Parsloe


On 8/04/2021 3:14 am, Paul A. Rubin wrote:

On 4/7/21 10:14 AM, Mario D wrote:

Hi all,

sometime I need to paste some latex code inside a lyx file.
When I do this, I lose all the formatting and, in particular,  I lose 
all new lines: this means that what I end up with in my red box in 
lyx is a complete mess which requires a lot of editing.


This is quite annoying: am I missing something which results in this 
behaviour?


Thank you

Have you tried Edit > Paste Special > Paste from LaTeX? Note that this 
is used to paste directly into the LyX document, /not/ into an ERT box 
(ctrl+L).


Paul


I usually just use Ctrl+Shift+V to paste text (including lines of LaTeX) 
that preserves new lines. It works in an ERT box. (I wasn't aware of the 
Paste from LateX option.  In fact, there's quite a bit here that has 
changed since I last carefully looked at what was offered by the 
different menus.)


Andrew

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


Re: L3-Programming-Layer????

2021-02-15 Thread Andrew Parsloe

On 16/02/2021 5:10 pm, Murat Yildizoglu wrote:



Le 16 févr. 2021 à 11:07, Richard Kimberly Heck > a écrit :


On 2/15/21 10:55 PM, Murat Yildizoglu wrote:

Dear Lyxers,

I have recently observed that I see the message 
(L3-Programming-Layer) followed by a date (2021-02-06) in the status 
bar when I compile a document.


Do you have any idea about its meaning and origin?


That is the LaTeX version you have telling you that it is the latest and
greatest.

Riki




Ah, Thank you Richard!
I have recently updated to MacTex 2020 and this change came with it 
probably.


Happy to use the greatest version! :-)

—

Prof. Murat Yildizoglu


More specifically: L3 (usually lowercase l3) refers to the LaTeX3 
project which has created a suite of macros organized into a programming 
language expl3 that is systematic in a way that TeX and LaTeX2e are not 
(although in the end the functions/statements in expl3 resolve 
themselves into TeX commands). See the documentation in the l3kernel 
package, particularly interface3.pdf. Increasing numbers of packages are 
being created using expl3. I've managed to write a couple, one 
stretching to many thousands of lines of code, whereas I struggle to 
cobble  5 lines of (La)TeX together. I presume the message in LyX means 
it is using expl3.


Andrew

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


Re: LyX 2.4.0 Alpha 1

2021-01-14 Thread Andrew Parsloe

On 15/01/2021 10:30 am, Andrew Parsloe wrote:


On 14/01/2021 10:11 pm, Baris Erkus wrote:

On 14-Jan-21 6:06 AM, Richard Kimberly Heck wrote:

On 1/13/21 4:18 PM, Baris Erkus wrote:

On 13-Jan-21 7:51 PM, Richard Kimberly Heck wrote:
We are pleased to announce the release of the first alpha for LyX 
2.4.0.

You can find source tarballs and binaries for Windows and OSX here:

http://ftp.lyx.org/ftp/pub/lyx/devel/lyx-2.4/

See this page

https://wiki.lyx.org/LyX/NewInLyX24

for a description of new features and updates. As you will note, 
there

are quite a few of those.

As always with alpha software, this is released only for testing
purposes. While some of the developers have been using this 
version, and
we believe it is fairly stable, there are likely to be some 
unpleasant
surprises. That said, we would greatly appreciate testing, 
especially on

Windows, where we have few developers.

Should you run into a problem, please report it on our bug tracker:

https://www.lyx.org/trac/newticket

(You may need to register, if you haven't already.) If you have
questions or comments, or aren't sure if what you have found is a 
bug,

please email the developer's list at lyx-de...@lists.lyx.org.


When I tried to open my LyX 2.3.5.2 file with 2.4.0a1 64 bits, it
gives the error "Error reading module theorems-ams-bytype." [snip] I
attached a MWE that I created in LyX 2.3.5.2, with empty contents but
with Theorems (AMS, numbered by type) module added. So it gives the
error once and the file opens.

This opens fine for me, with no error. Have you made any local
modifications to that module? (I.e., do you have your own modified copy
in your user directory?)

Eugene, can you reproduce?

Riki

PS Note that 2.3.6 is out.


Nope, I have not done modifications to the module.


I've installed 2.4.0 alpha 1 on windows 10. When I try to add the 
Standard Theorems (Numbered by type) module to a new document I too 
get the message: Error reading module theorems-bytype.  I looked at 
the module and commented out the line


Input theorems-counters-bytype.inc

and it loaded without problem. theorems-counters-bytype.inc is not in 
the LyX 2.4/Resources/layouts directory, which I presume is the problem.


(In the module there is also the line

    \ifx\proof\undefined\

Is that last backslash supposed to be there?)

Andrew

Please ignore. Time zones got in the way and the matter has been dealt with.


Andrew


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


Re: LyX 2.4.0 Alpha 1

2021-01-14 Thread Andrew Parsloe


On 14/01/2021 10:11 pm, Baris Erkus wrote:

On 14-Jan-21 6:06 AM, Richard Kimberly Heck wrote:

On 1/13/21 4:18 PM, Baris Erkus wrote:

On 13-Jan-21 7:51 PM, Richard Kimberly Heck wrote:
We are pleased to announce the release of the first alpha for LyX 
2.4.0.

You can find source tarballs and binaries for Windows and OSX here:

http://ftp.lyx.org/ftp/pub/lyx/devel/lyx-2.4/

See this page

https://wiki.lyx.org/LyX/NewInLyX24

for a description of new features and updates. As you will note, there
are quite a few of those.

As always with alpha software, this is released only for testing
purposes. While some of the developers have been using this 
version, and

we believe it is fairly stable, there are likely to be some unpleasant
surprises. That said, we would greatly appreciate testing, 
especially on

Windows, where we have few developers.

Should you run into a problem, please report it on our bug tracker:

https://www.lyx.org/trac/newticket

(You may need to register, if you haven't already.) If you have
questions or comments, or aren't sure if what you have found is a bug,
please email the developer's list at lyx-de...@lists.lyx.org.


When I tried to open my LyX 2.3.5.2 file with 2.4.0a1 64 bits, it
gives the error "Error reading module theorems-ams-bytype." [snip] I
attached a MWE that I created in LyX 2.3.5.2, with empty contents but
with Theorems (AMS, numbered by type) module added. So it gives the
error once and the file opens.

This opens fine for me, with no error. Have you made any local
modifications to that module? (I.e., do you have your own modified copy
in your user directory?)

Eugene, can you reproduce?

Riki

PS Note that 2.3.6 is out.


Nope, I have not done modifications to the module.


I've installed 2.4.0 alpha 1 on windows 10. When I try to add the 
Standard Theorems (Numbered by type) module to a new document I too get 
the message: Error reading module theorems-bytype.  I looked at the 
module and commented out the line


Input theorems-counters-bytype.inc

and it loaded without problem. theorems-counters-bytype.inc is not in 
the LyX 2.4/Resources/layouts directory, which I presume is the problem.


(In the module there is also the line

    \ifx\proof\undefined\

Is that last backslash supposed to be there?)

Andrew

Andrew

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


Re: Markdown to Lyx

2020-12-09 Thread Andrew Parsloe

On 10/12/2020 4:15 pm, Murat Yildizoglu wrote:

Hello All,
I am trying to find a way to directly import markdown documents in Lyx.

I have created a Markdown file type and a filter Markdown->Latex using a pandoc 
command for the conversion:
  pandoc -f markdown_mmd -t latex   -o $$o $$I
But Lyx does not include this type in the import menu.
What am I missing?
How can I do this?
Is this possible?

Thank you for your help!

Murat


Have you created a Markdown file format in LyX,

Tools > Preferences > File Handling > File Formats

ensuring the Document format checkbox is set? The name you use for the 
format will then appear in the lists showing in the From format: and To 
format: slots in the


Tools > Preferences > File Handling > Converters

dialogue. There are a number of Converter Definitions already from 
different formats to LyX format.


Andrew

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


Re: New windows installers (2.3.6, both 32 and 64 bit) do not start installation

2020-12-09 Thread Andrew Parsloe

On 10/12/2020 2:50 pm, Lorenzo wrote:


Yu Jin  escribió:

Am Mi., 9. Dez. 2020 um 00:12 Uhr schrieb Lorenzo 
:




Dear all,

New windows installers (2.3.6, both 32 and 64 bit) do not start
installation on my system; in fact they not even request admin
permission to start; simply nothing happens when I double click the
installer. Also nothing happens if I try to execute both of them as
admin.

BTW I have not had any issue with 2.3.5.2 versions or older with Miktex

My system is Windows 10 64 bit.

Thank you very much in advance,

Best Regards,



Did you check in the task manager if the process (in the details tab) 
shows

up in there?
--
    Eugene


Uninstalled 2.3.5.2 and tried back to install:
LyX-236-Installer-1-x32 ==> Nothing happens. The process/program is 
not shown under "Details" tab at the Task Manager
LyX-236-Installer-1-x64 ==> Program is shown under "Details", admin 
permit is requested and installation starts (and finishes successfully)


Not sure if uninstallation of 2.3.5.2 was related to success of 2.3.6 
x64 installation. Additionally I have tried to install the 2.4.0dev 
versions with same results as LyX-236-Installer-1-x32 (Nothing 
happens. The process/program is not shown under "Details" at the Task 
Manager)


Regards,


Just to provide another data point, I had no problem installing 2.3.6 
32-bit over the 2.3.5.2 that was there. I too use MiKTeX and 64-bit 
windows 10. In an absent-minded way I have sometimes been confused in 
the past right at the start of installation by the admin-permit request 
being out of sight in the task bar at the bottom of the screen which I 
have on an auto-hide setting.


Andrew

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


Re: Installing new class. cls files

2020-07-28 Thread Andrew Parsloe

On 28/07/2020 11:55 am, Rich Shepard wrote:

On Tue, 28 Jul 2020, Mike Reeks wrote:


Can anyone help me out here? I’m trying to install a class file for ASME
journals using Miktex console.


Mike,

Last time I used windoze was 1997 and NT4. I know nothing about it.

Rich


From the MiKTeX console Welcome! window, choose whether you want to 
install the package in administrator mode or not. (I prefer to do things 
in Admin mode, but I'm the only person using my machine.) Choose the 
Packages option from the left-hand column of the console window. In the 
filter window type asme and click the filter icon. I find two packages 
listed, asmeconf, and asmejour. If you select either and click on the 
info icon, you will see that it includes a class file. Select the 
relevant one (or both). Click the + icon, click OK on the dialogue that 
then shows, and wait while MiKTeX installs the package. Installation is 
complete when the Cancel button changes to Close. The console window 
will then think for a moment before displaying a list of all packages 
available. If you search for  asmejour or asmeconf you will find it now 
displays today's date in the Installed on column.


Whether LyX can use it "intelligently" is another matter. In LyX look 
under Help > LaTeX Configuration > Additional document classes to see 
some additional classes. ASME is not included but looking at the example 
documents for some of the ones that are included may be helpful. On my 
computer the examples can be found in C:\Program Files (x86) > LyX 2.3 > 
Resources > examples.


Andrew

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


Re: Custom layout inset without arguments

2020-04-20 Thread Andrew Parsloe

On 21/04/2020 8:47 am, Richard Kimberly Heck wrote:

On 4/19/20 2:23 PM, Gaston Gloesener wrote:


Riki wrote:

>This is bug #4066: https://www.lyx.org/trac/ticket/4066. There's at 
least some intention to try to figure it out before 2.4.0. For now, 
the workaround you mention is the only one available.


>

>Riki

Thank you for this pointer. I am a bit scared by this bug report 
having 13 years and last update being 12 months ago, but let’s stay 
positive it will happen 


I filed the report, too, and have always meant to do something about 
it. Really, that bug is more general, since the idea was for it to be 
possible to declare various options, as well, so the command could in 
effect have arguments (the way the label command does, e.g.).




Andrew wrote:

>But you can eliminate the red box from showing by closing the inset 
(click on the inset label to toggle open/closed).


Thanks for this workaround. I did actually notice this shortly after 
sending my email and must admit that it is already a big progress 
that I can at least get rid of the annoying  red box.


Would it be enough here if we could just have a "no text box" option? 
This would basically be a form of Decoration.


Riki

For appearance in LyX this would be helpful, but if the associated latex 
command has an empty argument  attached that might be confusing, for 
example if using the latex command in an ert inset where you will need 
to remember that it is not just the command that is required but also a 
following empty argument (otherwise the next token in the ert inset is 
going to be gobbled).


Andrew

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


Re: Custom layout inset without arguments

2020-04-18 Thread Andrew Parsloe


On 19/04/2020 6:36 am, Richard Kimberly Heck wrote:

On 4/18/20 9:49 AM, Gaston Gloesener wrote:


InsetLayout "Flex:projectNameInset"

  LabelString “My Project Name"

  LatexType Command

  LaTexName projectName

  LyxType "custom"

  Decoration Classic

  Preamble

    \newcommand*{\projectName}{ My Project Name }

  EndPreamble

End

The problem with this InsetLayout is that LyX always displays a red 
parameter input box after the insert of the inset and this is quite 
annoying in this use case as such insets will be quite common in the 
document. Is there any method for removing this as this macro does 
not require any arguments. I tried to set LatexType to None with no 
success and did not identify any other potential solution. Also 
google did not show me any potential solutions for this.


After some research and looking up in files provided with LyX I seem 
to understand that basically insets are always expected to have some 
type of conments and the use I make of it here is more a work-a-round 
than a solution. At least I was unable to locate an inset where no 
content was excpected.


So the question remains:

  * Is there a way to prevent LyX from asking for some content (red box)
  * If not, is there another solutioin than the one used here to
achieve the same goals and avoid that input box ?
  * would it be possible to add an attribute to InsetLayout to
disable the contents box in the doc text in a future version ?
(like NoContent)

This is bug #4066: https://www.lyx.org/trac/ticket/4066. There's at 
least some intention to try to figure it out before 2.4.0. For now, 
the workaround you mention is the only one available.


Riki

But you can eliminate the red box from showing by closing the inset 
(click on the inset label to toggle open/closed).


Alternatively, there is a hybrid Latex/LyX solution, that avoids going 
to the menu to insert custom insets and uses keyboard shortcuts instead.


1. Ensure instant preview is On (Tools > Preferences > Look & Feel > 
Display)


2. Assign a keyboard shortcut to preview-insert (Tools > Preferences > 
Editing > Shortcuts > Cursor, Mouse and Editing Functions). Now that 
printing directly from LyX is no longer supported the shortcut Ctrl+P is 
available.


3. Enter in the preamble (Document > Settings > Latex Preamble)

\newcommand*{\projectName}{ My Project Name }

and click OK.

To enter the project name in the document,

4. insert a preview inset (Ctrl+P)

5. insert an ert inset (Ctrl+L) inside the preview inset. On a QWERTY 
keyboard, the P and L  keys are diagonal neighbours so steps 4 & 5 
involve holding the ctrl key down and tapping P and L in quick succession.


6. enter \projectName in the ert inset

7. move the cursor outside the insets. The preview does its magic and 
the project name is shown.


Andrew


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


Re: Instant previews not showing

2020-04-15 Thread Andrew Parsloe

On 15/04/2020 8:21 pm, Daniel wrote:

Hi,

Is there a way to see why instant previews fail to generate?

I have a document that compiles fine but the instant previews in it 
don't. In other documents the previews just work fine. So, there must 
be a particular problem with this one (which is a child of a master 
document).


Best,
Daniel

Look at the log in the temporary directory? Because I often stretch what 
preview was designed for, I get this kind of problem every now and again 
and the preview log is nearly always helpful. (It's usually in 
lyx_tmpbuf0 although with a child document that may not be the case.) 
Previews are featured near the end of the log. The latex error message 
usually allows the particular preview causing the problem to be identified.


Andrew

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


Re: LyX 2.3.x: how to insert externally generated code for table?

2020-03-04 Thread Andrew Parsloe


On 5/03/2020 5:10 am, Bernt Lie wrote:


I’m running a program which generates LaTeX code for a table.

Question:

  * How can I insert this table into LyX?
  * I want the table to have the same type of preview as Tables I set
up manually inside of LyX
  * I want the table to be a floating table.
  * Such tables may be large, so I may want to make it multi-page, and
possibly rotate it.

Example:


\begin{tabular}{rrr} \hline\hline \textbf{Temperature [K]} & 
\textbf{Pressure [bar]} & \textbf{Specific volume liq [m3/kg.1e3]} \\ 
\texttt{Float64} & \texttt{Float64} & \texttt{Float64} \\\hline 273.15 
& 0.00611 & 1.0 \\ 275.0 & 0.00697 & 1.0 \\ 280.0 & 0.0099 & 1.0 \\ 
285.0 & 0.01387 & 1.0 \\ 290.0 & 0.01917 & 1.001 \\\hline\hline 
\end{tabular}


Can I insert the table within LyX? Or do I have to insert the table in 
a LyX document and insert the code via an ASCII editor?


Thanks for suggestions!

BR,

B


One way is to put an ert inset inside a preview inset inside a table 
float and paste the table code into the ert inset. Move the cursor 
outside the float and wait while preview does its thing. I did just that 
and attach the result.


Andrew

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


Re: Index "see..." Cross-reference Broken in User Guide

2019-12-11 Thread Andrew Parsloe


On 12/12/2019 1:14 pm, Joel Kulesza wrote:
On Wed, Dec 11, 2019 at 4:59 PM Andrew Parsloe <mailto:ajpars...@gmail.com>> wrote:



On 12/12/2019 12:36 pm, Joel Kulesza wrote:

On Wed, Dec 11, 2019 at 4:01 PM Andrew Parsloe
mailto:ajpars...@gmail.com>> wrote:


On 12/12/2019 2:55 am, Joel Kulesza wrote:

On Wed, Dec 11, 2019 at 3:07 AM Axel Dessecker
mailto:ades...@gwdg.de>> wrote:

Am Dienstag, 10. Dezember 2019, 23:53:24 CET schrieb
Joel Kulesza:

> Has anyone else observed that the "See..."
cross-references in the User
> Guide index fail to render?
>
> For example, using LyX 2.3.3 the "GIF|see{Image
Formats}" in Section 4.4.1
> of the User Guide does not make an entry for GIF or
anything indicating
> that something else should be seen.

I cannot confirm your observation. I have the user guide
in German and the
cross-reference command for GIF you are mentioning
correctly creates a list
entry for “Grafikformate” (image formats). This is LyX
2.3.3 and Linux
(openSUSE).


Axel,

Thank you for testing.  Weird.  I cannot see it (see
attached with no "GIF" entry int he index).  I've tried on
various flavors of macOS with TeXLive 2017, 2018, and 2019. 
All fail. I also tried on RHEL7, with LyX 2.3.2 and TeXLive
2018, and it also fails.

I'm glad to know it works, at least for someone.  I'll
continue digging, but I'd be happy to know if anyone else
sees GIF in the index pointing to Image Formats, or not.

Thank you,
Joel


Like Axel, I get the "GIF see Image formats" entry produced
in the index. This is LyX 2.3.3, the English User's Guide, on
a Windows 10 machine. Under "Images" there is a subheading
"Formats  71".

Andrew

Andrew,

To confirm: you see an entry for "GIF" in the index?

My understanding from Section 6.6.3 of the User Guide is that it
should exist and point to Image Formats as a cross reference. 
However, I do not see that and I believe Axel indicated that he
didn't look for the GIF entry.

The cross-referencing entry for GIF that I'm missing (and want to
have in my own document).

Thanks,
Joel


Yes, I copied the "GIF see Image formats" entry from the index of
a just-compiled User's Guide. It's there, along with similar
entries for JPG, SVG, PNG and EPS. In case it's relevant the index
has numerous other see references, e.g., "Bindings see Key
Bindings", "Formulas see Math", "Glossary see Nomenclature",
"Ligatures see Typography", and as a subheading under "LYX",
"Reconfigure see Reconfiguration of LYX".

Andrew


Darn, OK, thanks.  I'll hunt around some more to see if I can provoke 
it into appearing.  A question: are you using MikTeX or TeXLive?


Thanks,
Joel


MiKTeX 2.9 64 bit.

In the Code Preview pane I see, e.g., \index{GIF|see{Image formats}}.

In Document settings, I see

Document class is KOMA-Script book with custom class options:

refpage,intoc,bibliography=totoc,index=totoc,BCOR7.5mm,captions=tableheading

Indexes is default. (Presumably MakeIndex?) and in the preamble I see

% macro for italic page numbers in the index

\newcommand{\IndexDef}[1]{\textit{#1}}

Andrew


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


Re: Index "see..." Cross-reference Broken in User Guide

2019-12-11 Thread Andrew Parsloe


On 12/12/2019 12:36 pm, Joel Kulesza wrote:
On Wed, Dec 11, 2019 at 4:01 PM Andrew Parsloe <mailto:ajpars...@gmail.com>> wrote:



On 12/12/2019 2:55 am, Joel Kulesza wrote:

On Wed, Dec 11, 2019 at 3:07 AM Axel Dessecker mailto:ades...@gwdg.de>> wrote:

Am Dienstag, 10. Dezember 2019, 23:53:24 CET schrieb Joel
Kulesza:

> Has anyone else observed that the "See..." cross-references
in the User
> Guide index fail to render?
>
> For example, using LyX 2.3.3 the "GIF|see{Image Formats}"
in Section 4.4.1
> of the User Guide does not make an entry for GIF or
anything indicating
> that something else should be seen.

I cannot confirm your observation. I have the user guide in
German and the
cross-reference command for GIF you are mentioning correctly
creates a list
entry for “Grafikformate” (image formats). This is LyX 2.3.3
and Linux
(openSUSE).


Axel,

Thank you for testing.  Weird.  I cannot see it (see attached
with no "GIF" entry int he index). I've tried on various flavors
of macOS with TeXLive 2017, 2018, and 2019.  All fail. I also
tried on RHEL7, with LyX 2.3.2 and TeXLive 2018, and it also fails.

I'm glad to know it works, at least for someone.  I'll continue
digging, but I'd be happy to know if anyone else sees GIF in the
index pointing to Image Formats, or not.

Thank you,
Joel


Like Axel, I get the "GIF see Image formats" entry produced in the
index. This is LyX 2.3.3, the English User's Guide, on a Windows
10 machine. Under "Images" there is a subheading "Formats  71".

Andrew

Andrew,

To confirm: you see an entry for "GIF" in the index?

My understanding from Section 6.6.3 of the User Guide is that it 
should exist and point to Image Formats as a cross reference.  
However, I do not see that and I believe Axel indicated that he didn't 
look for the GIF entry.


The cross-referencing entry for GIF that I'm missing (and want to have 
in my own document).


Thanks,
Joel


Yes, I copied the "GIF see Image formats" entry from the index of a 
just-compiled User's Guide. It's there, along with similar entries for 
JPG, SVG, PNG and EPS. In case it's relevant the index has numerous 
other see references, e.g., "Bindings see Key Bindings", "Formulas see 
Math", "Glossary see Nomenclature", "Ligatures see Typography", and as a 
subheading under "LYX", "Reconfigure see Reconfiguration of LYX".


Andrew

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


Re: Index "see..." Cross-reference Broken in User Guide

2019-12-11 Thread Andrew Parsloe


On 12/12/2019 2:55 am, Joel Kulesza wrote:
On Wed, Dec 11, 2019 at 3:07 AM Axel Dessecker > wrote:


Am Dienstag, 10. Dezember 2019, 23:53:24 CET schrieb Joel Kulesza:

> Has anyone else observed that the "See..." cross-references in
the User
> Guide index fail to render?
>
> For example, using LyX 2.3.3 the "GIF|see{Image Formats}" in
Section 4.4.1
> of the User Guide does not make an entry for GIF or anything
indicating
> that something else should be seen.

I cannot confirm your observation. I have the user guide in German
and the
cross-reference command for GIF you are mentioning correctly
creates a list
entry for “Grafikformate” (image formats). This is LyX 2.3.3 and
Linux
(openSUSE).


Axel,

Thank you for testing.  Weird.  I cannot see it (see attached with no 
"GIF" entry int he index).  I've tried on various flavors of macOS 
with TeXLive 2017, 2018, and 2019. All fail. I also tried on RHEL7, 
with LyX 2.3.2 and TeXLive 2018, and it also fails.


I'm glad to know it works, at least for someone.  I'll continue 
digging, but I'd be happy to know if anyone else sees GIF in the index 
pointing to Image Formats, or not.


Thank you,
Joel

Like Axel, I get the "GIF see Image formats" entry produced in the 
index. This is LyX 2.3.3, the English User's Guide, on a Windows 10 
machine. Under "Images" there is a subheading "Formats 71".


Andrew



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


Re: How to set editor for external edit of preamble

2019-08-14 Thread Andrew Parsloe

On 15/08/2019 1:28 PM, Daniel wrote:

On 2019-08-14 20:23, Paul A. Rubin wrote:

On 8/14/19 7:35 AM, Dr Eberhard Lisse wrote:

Me three :-)-O

el

On 14/08/2019 07:15, Daniel wrote:

Hi,

I just discovered the new feature to edit the preamble externally.
However, I couldn't find where to set the editor for this of any
documentation about it.  On MacOS it opens XCode which asks me to
install additional application or Quit.  This renders the function
pretty useless for me.  I have set a different application as default
for TeX files but LyX seems ignore this.  How can I make LyX open my
favorite editor?

Best,
Daniel



Tools > Preferences > File Formats > LaTeX (plain) > Editor.

Paul



Thanks. So, I take it, there is no documentation of this.

Next, question: how do I set a Custom editor then? I tried 
"/Applications/texmaker.app" but nothing happens though "open 
/Applications/texmaker.app" in the terminal works just fine.


Daniel

Following Paul's response, I chose Custom and entered notepad++ (my 
preferred text editor) in the adjacent window. I've included C:\Program 
Files\Notepad++ (preceded and followed by semicolons) in the path string 
at Tools > Settings > Paths. It works (at least in windows).


Andrew



Re: Is latest Windows 10 (1809 prior to 1903-not installed) Update breaking Lyx 2.33 and MikTex?

2019-07-13 Thread Andrew Parsloe



On 14/07/2019 5:57 AM, Brian Davis wrote:

Performing operation scorched earth (a play by play):

Zip Lyx user dir stuff in AppData
Uninstall MikTeX
Laugh at MikTex Uninstall
Delete cruft MikTeX leaves behind in C:\Program Files (x86)
Uninstall LyX with check box to remove all user data

Reboot machine.

Install MikTex basic-miktex-2.9.7100-x64.exe
Select Letter
Select Auto install dependencies
Click through

Install LyX LyX-233-Installer-1.exe
Click through
Wait for MikTex LyX to check and download any packages.
Watch paint dry
Count the popcorn on the ceiling
Contemplate the meaning of life
Could we detect life on exoplanets by looking near atmosphere for 
space junk... h?  One persons junk is another persons treasure.

LyX/MikTex still spinning.
Could coronal mass ejections (CME) (millions of tons of matter) be 
redirected towards earth or moon using magneto hydrodynamics and a 
series of satellites  to create the largest 3D Universal (as in solar 
system)  Printer in the universe? Possibly even separate the matter 
stream for various matter types?   Say space mining on steroids?  Hmm 
lets submit that question to GSFC public portal done.

Hey LyX is done installing
Finally
Check Launch LyX

Open my test.lyx
Check for document creation using eyes icon to generate pdf.
Works
Check Document -> Settings
Document Class reads: Unavailable: Article (Standard Class)

Wait... what ... How can it generate a pdf if the cls file cannot be 
found by LyX.

At least now it is generating the pdf file, but how?
What da h#!!?
I even switched the document class to another unavailable Article 
class the one with Extra Font Sizes and received an error about not 
being able to compile the document t yada... yada ...yada and IT STILL 
COMPILES AND GENERATES A PDF... What is going on?


Do I need to post a YouTube vid on this bizarro experience?

I am thoroughly confused.

When you reinstalled LyX did you retain your preferences? If so, then 
try renaming the file


C:\Users\\AppData\Roaming\LyX2.3

to (say)

C:\Users\\AppData\Roaming\LyX2.3old

and then start LyX. This will create a pristine LyX2.3 folder and 
subdirectories. See if that cures the article.cls problem. I've had 
occasions when something has gone wrong in my preferences file and this 
has done the trick. If it does solve the problem, then copy back the 
subdirectories one by one from LyX2.3old to the new LyX2.3 and start LyX 
after each copy to see when the problem re-emerges.


Andrew





Re: Is latest Windows 10 (1809 prior to 1903-not installed) Update breaking Lyx 2.33 and MikTex?

2019-07-12 Thread Andrew Parsloe

On 13/07/2019 7:36 AM, Brian Davis wrote:

@Andrew Parsloe

I tried installing I3backend and "Reconfigure" / Restart Lyx and no dice.

I also checked for article.cls and MikTeX states Itxbase is installed 
but LyX states it is still unavailable.


Any other packages? that you may have also installed?

Thx
B


l3backend was the only missing package I was aware of. There are various 
MiKTeX log files available. You need to dig deep to find them. On my 
system they're at


C:\Users\Andrew\AppData\Local\MiKTeX\2.9\miktex\log

See which ones are getting added to when you try to run LyX (sort them 
by date/time).


Andrew



Re: Is latest Windows 10 (1809 prior to 1903-not installed) Update breaking Lyx 2.33 and MikTex?

2019-07-11 Thread Andrew Parsloe

On 12/07/2019 11:21 AM, Brian Davis wrote:


How is it possible to have 3 working versions of LyX/MikTex on three 
different computers (all Windows) and have them all break within a 
couple of weeks without doing anything (except allowing Windows Updates)?


I have been receiving errors after latest windows updates on 3 
different machines all were running successfully LyX and MikTex and 
stopped working out of the blue with the following type errors:


The process latex icon bottom right just spins for minutes then:

LyX: Stop command?

The command pdflatex "test.txt" has not completed.

Do you want to stop it?

Stop it Let it run

If Let it run:

Does not matter which it will still fail either way.

LyX: LaTeX failed:

The external program

pdflatex

finished with an error. It is recommended you fix the cause of the 
external program's error (check the logs)


And right about now I certainly wish LyX would make the error text 
boxes where the text can be copied an pasted into an email sigh.


I currently upgraded to latest Lyx and MikTex and performed the 
typical LyX -> Reconfigure and restart Lyx only to still find 
Unavailable: Article (Standard Class) and still above errors as though 
LyX cannot find MikTex even though Tools->TeX Information finds .cls 
files in the MikTex 2.9 directory in Program Files (x86)


basic-miktex-2.9.7100-x64.exe

LyX Version 2.3.3

(Monday, June 10, 2019)

Library directory: C:\Program Files (x86)\LyX 2.3\Resources\

User directory: ~\AppData\Roaming\LyX2.3\

Qt Version (run-time): 5.11.3

Qt Version (compile-time): 5.11.3

Anyone else experience this?
It is super-awesome!


I'm running LyX 2.3.3  with MiKTeX 2.9 on windows 10 without problems. 
However, after a MiKTeX update a week (or two? -- memory fades) ago I 
had a problem compiling documents which previously compiled 
successfully. There was a pdflatex error, the little circling busy sign 
continuing endlessly. The problem was the absence of the LaTeX3 package 
l3backend which is a new package required for the working of expl3.sty 
which LyX requires. Check whether you have l3backend installed.


Andrew



Forward & reverse search

2019-06-25 Thread Andrew Parsloe
Since buying a new computer, which meant moving from windows 7 to 
windows 10, I've been having trouble with the reverse part (pdf to lyx) 
of forward and reverse search. I use SumatraPDF. I finally took the 
trouble to consult the wiki. Both forward and reverse search now work 
like a charm, including with a split view window in LyX. So thank you to 
whoever is responsible for the instructions on the wiki.


Andrew



Re: split view doesn't update display

2019-06-05 Thread Andrew Parsloe

On 6/06/2019 11:33 AM, Paul A. Rubin wrote:

On 6/5/19 7:21 PM, Joel VanderWerf wrote:



One more observation: when I type in the left pane, the right pane 
updates correctly (presuming it is scrolled to the same region).


Yes, same here.

Paul

The issues in this thread may be related to 
https://www.lyx.org/trac/ticket/11354 the fix for which is to be in LyX 
2.3.3.


Andrew



Re: About the Save popup window.......

2019-05-11 Thread Andrew Parsloe

On 11/05/2019 11:31 AM, Charlie wrote:

Hello LyX Users,

Using LyX Version 2.3.2 - Debian Buster [testing] and FVWM

So this might be a feature that has yet to be included again, or not,
so just curious.

When using LyX previously when "Crtl + S"  or "Ctrl + Shift + S" to
save a file was invoked. It supplied, on the toolbar across the top of
the window that popped up, a small box that said "Template".

That doesn't appear any more. I am unable to find how I might place it
back by looking through "Preferences". Cannot identify what I must
enable to return it to that place.

So thought I may get a hint here. Maybe it has been removed forever. To
know that would also be helpful. Allowing me to cease looking for it
whenever a new thought in the attempt to find it occurs.

TIA,
Charlie
You need to manually edit your preferences file in your user lyx 
directory and add the line


\use_native_filedialog false

At least this has the required effect on windows. This isn't available 
under Tools > Preferences (at present).


Andrew



Re: Win 7 and LyX and MikTeX

2019-04-26 Thread Andrew Parsloe

On 25/04/2019 6:45 AM, Baris Erkus wrote:

Hello,

Is anybody using LyX+MikTeX+Win 7 without any problems?

I have a computer where I can only install Win 7 and wondering if it
will cause any problems.

Thanks

Baris


I have a computer with this combination installed and I much prefer it 
to my current computer with LyX+MiKTeX+Win 10. Unfortunately the Win 7 
machine showed signs of aging but I used it without problems for many years.


Andrew



Re: Quicker build

2019-04-22 Thread Andrew Parsloe

On 22/04/2019 5:53 AM, Scott Kostyshak wrote:

On Sun, Apr 21, 2019 at 10:09:34AM +0200, Daniel wrote:

On 2019-04-20 19:21, Scott Kostyshak wrote:

On Sat, Apr 20, 2019 at 03:51:11PM +0200, Daniel wrote:

Hi,

My manuscript takes very long to fully compile, a couple of minutes. I have
already tried to only compile parts of it but there was not much difference.

Since LaTeX is running several rounds in order to get all the references and
such right, is there a way to get LyX to run less rounds?

You can define your own converter. See Help > Customization.

Scott


  Thanks! It's a bit sparse on information what I would have to set there to
achieve what I am after though. Any ideas welcome.

It's been a long time since I've made a custom converter, so I don't
know off-hand.

Does it do what you want if you remove "latex=pdflatex" in the converter
flag for the converter LaTeX (pdflatex) -> PDF (pdflatex)? (if you use
something other than pdfLaTeX, adapt accordingly).

Scott


My usual method of reducing compile time while working on a master-child 
document is,  in the master document, to put the include statements for 
the child documents  into branches and to activate/deactivate these as 
desired. Of course the table of contents is truncated and references are 
reduced to (??) but it does speed things up if you want to check on the 
appearance of the part you are working on.


Andrew



Re: No console output on Windows 7

2019-03-14 Thread Andrew Parsloe



On 15/03/2019 10:45 AM, Jean-Marc Lasgouttes wrote:

Le 14/03/2019 à 21:40, Jean-Marc Lasgouttes a écrit :

Le 14/03/2019 à 21:32, Paul A. Rubin a écrit :
As far as I know, the current Windows port of LyX does not generate 
console output to the command prompt. If you start LyX from a 
command prompt with debugging output turned on (for instance, "path>\lyx.exe -dbg any"), and if the LyX GUI opens, you can see what 
would have been console output via View > Messages. Starting LyX 
with commands that do not open the GUI (such as -help, as Kornel 
points out) will thwart this.


This is definitely a bad idea. I remember seeing discussion about 
special windows console behavior, but I have no idea how it really 
works.


I tried on my own windows 10 build and it just worked. Either there is 
a problem with windows 7, or the distributed build are different.


JMarc

With the 2.3.2-2 win installer provided by Riki on my windows 10 
machine, the -dbg any option starts LyX but -help doesn't.


Andrew



Re: LyX & differential *operator*

2019-01-08 Thread Andrew Parsloe

On 9/01/2019 3:28 AM, Bernt Lie wrote:

I use LyX 2.3.1 under Windows 10.

I'm trying to create an "operator" for the infinitesimal d. Thus, instead of writing $dx$ 
-- which leads to "d" in italic font, I go to Document/Settings... and the LaTeX Preamble 
field:

\DeclareMathOperator{\diff}{d}

Next, in the document, I write $\diff x$, i.e., I type: \diff + space + x when in math 
mode. The result is that "d" is typeset in roman font, which is what I want.

HOWEVER, the spacing between the roman d and the x is a little bit too large to 
be pretty.

OK -- I have tried to insert a negative space (\! + space) in the document, and 
that helps. However, now the spacing is a little bit too small...

* Question: is there a slightly smaller negative spacing?

Also: how can I insert the negative space into the operator definition? Doing:

\DeclareMathOperator{\diff}{\! d}

doesn't work.

Thanks!
-B


For your interest, I recently uploaded version 3 of my diffcoeff package 
to CTAN. This provides a command \diff for writing differential 
coefficients (derivatives) with multiple options for tweaking the 
display, and a command \dl for writing differentials with an option for 
inserting a specified amount of space before the differential -- 
something you might want to do in an integral for instance to separate 
the integrand from the dx.


Andrew


---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus



Re: Cross-reference Styling Inquiry

2018-11-08 Thread Andrew Parsloe



On 9/11/2018 7:00 AM, Joel Kulesza wrote:

Colleagues,

As I'm writing a paper, I have a mix of Ref:... and EqRef:... cross 
references.  I also, unfortunately, sometimes manage to break them and 
achieve BROKEN:... cross references.


Has anyone identified a way to color the associated boxes/buttons 
differently based on their status (Ref, EqRef, BROKEN, etc.)?  By 
default, they are all gray and it can be easy to overlook the 
miscategorization of an EqRef style to a typical Ref and vice versa.  
It can also be hard to quickly see or incidentally notice BROKEN cross 
references.


What I'd like to see is something like Ref (light blue), EqRef (light 
green), BROKEN (light red).  Has anyone identified a way to do this?  
Is this an enhancement request that I should enter?


Thank you,
Joel


This doesn't answer your question, but the Outliner, Labels and 
References, with the Sort checkbox set is an easy way to find BROKEN 
refs. They cluster in a block near the top. Clicking on any one, jumps 
straight to the ref in the document.


Looking at all the different AMS environments suggests it would be too 
much for LyX to provide a different colour for each kind of ref, but 
being able to customize the label colour would be good. (I can find 
stdrefprefix.inc in the LyX Resources/layouts directory but nothing that 
sets the appearance of ref labels.)


Andrew


---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus



Re: Problem with spreadtab module and LyX 2.3.1

2018-11-05 Thread Andrew Parsloe

On 4/11/2018 2:15 a.m., Graeme wrote:
The spreadtab module is extremely useful, as it provides a wrapper 
around a conventional table environment, to enable some 
spreadsheet-like capabilities within the table (using the LaTeX 
package spreadtab).

It can be downloaded from wiki.lyx.org/Layouts/Modules.

When creating a long(multipage) table within the sLTable environment 
provided by the spreadtab module, there is one small difference 
between the plain LaTeX code produced by LyX 2.3.0 and 2.3.1.

Specifically, LyX 2.3.0 exports the lines:
\sLTable{}{%
\begin{longtable}{|c|c|c|c|c|}
while LyX 2.3.1 exports the lines
\sLTable{}{%
\begin{longtable}[c]{|c|c|c|c|c|}

In practice I think the LyX 2.3.1 version is correct, but it exposes a 
bug in spreadtab module version 1.4, which cannot handle the optional 
[c] argument following \begin{longtable}.


Thus LyX 2.3.0 can successfully generate a PDF file, while LyX 2.3.1 
fails with a LaTeX error. This applies to LyX under both Windows 10 
with MikTeX, and Linux Mint with TeXLive 2017.


An example LyX file is attached, along with the PDF file generated 
successfully from it using File/Export/PDF(ps2pdf) with LyX 2.3.0.


Unfortunately, I am not sure how to fix the bug in the spreadtab 
module, so help on this would be welcome.


Graeme
I've attached the new module which works with longtables now, and also 
"normal" tables -- the tabular environment with or without the optional 
vertical alignment  argument. The documentation also needs updating. 
When that's done I'll make a zip file of both module and documentation 
and make them available from the wiki as before.


The spreadtab documentation nowhere mentions longtables. I suspect the 
author of that package  would be suprised to find someone contemplating 
using it for tables big enough to break across pages. He writes "... the 
3 stages [of pdf compilation] described above take time, and above all, 
fp is slow in its calculations. The spreadtab environment leads to much 
slower

compilation than with a classical table."

(But then, perhaps he would think that that is just the sort of thing a 
LyX user would do. He is scathing of LyX, and of people who use LyX. To 
add to my sins, I wrote to him in English. Thrice a sinner.)


Andrew


---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus
#\DeclareLyXModule[spreadtab.sty,fp.sty,xstring.sty]{Spreadtab}
# DescriptionBegin
# Adds commands which give LyX tables spreadsheet capabilities
# (minimum example: adding a column of figures). Tables are
# built in LyX using its table toolbar facilities. Instant
# preview allows the calculated values to be viewed in LyX. 
# DescriptionEnd
#
# spreadtab.module v.2.0 2018-11-05
#
# Assumes at least version 0.4a of spreadtab.sty and 
# will fail with 0.3 and earlier versions. Also assumes
# LyX 2.2.x or later. 
#
# Author: Andrew Parsloe  ajpars...@gmail.com
#
Format 60

AddToPreamble
\usepackage{spreadtab}

% for LyX, instead of \\
\STeol{\tabularnewline}

% default text cell marker is @ but ` is neater
\renewcommand{\STtextcell}{`}

% to avoid 18 places of decimals
\STautoround{4}

% pattern-matching macros to turn LyX tables into spreadtab tables
% #1=save cell, #2=new col format
% opt arg: #4=environment, #5=[,  #6=remainder
% none:#4=environment, #5=col. format #6=remainder
\def\sLt@b[#1]#2#3\begin#4#5#6\end#7%
  {%
\def\sLtmpb{#2}#3%
\if#5[
  \ifx\sLtmpb\empty
\sLlt@bopt[#1]{#4}#5#6\endspreadtab%
  \else
\sLlt@boptreform[#1]{#2}#4#5#6\endspreadtab%
  \fi
\else
  \ifx\sLtmpb\empty
\sLt@bnone[#1]{#4}{#5}#6\endspreadtab%
  \else%
\sLt@bnonereform[#1]{#2}{#4}{#5}#6\endspreadtab%
  \fi
\fi
  }

\def\sLlt@bopt[#1]#2[#3]#4#5{\sLt@bsubst{#1}{#2}{#3}{#4}{#5}}
\def\sLlt@boptreform[#1]#2#3[#4]#5#6{\sLt@bsubst{#1}{#3}{#4}{#2}{#6}}
\def\sLt@bnone[#1]#2#3#4{\sLt@bsubst{#1}{#2}{}{#3}{#4}}
\def\sLt@bnonereform[#1]#2#3#4#5{\sLt@bsubst{#1}{#3}{}{#2}{#5}}

\def\sLt@bsubst#1#2#3#4#5{\spreadtab[#1]{{#2}[#3]{#4}}#5}

EndPreamble

Style sLTable
  Category  Tables
  LatexType   Command
  LatexName   sLTable
  Argument1
LabelString   "New column formatting"
  End
  Argument2
LabelString  "Cell contents"
Mandatory 1
  End
  Align   Center
  PassThruChars*^\
  Preamble
  \newcommand{\sLTable}[3][]{\sLt@b[#2]{#1}#3}
  EndPreamble
End
  
InsetLayout Flex:sLSaveCell
  LyXType  custom
  LatexType   Command
  LatexName   sLSaveCell
  ContentAsLabel  1
  DecorationClassic
  LabelFont
Color  phantomtext
  EndFont
  LabelStringSave
  Multipar  0
  PassThru  1
  ResetsFont0
  Preamble
\newcommand\sLSaveCell[1]{\sLs@vecell#1}
\def\sLs@vecell#1,#2{\STsavecell{#2}{#1}}
EndPreamble
End

InsetLayout Flex:sLRetrieve
  LyXType  custom
  LatexType   

Re: Problem with spreadtab module and LyX 2.3.1

2018-11-03 Thread Andrew Parsloe




On 4/11/2018 2:15 a.m., Graeme wrote:
The spreadtab module is extremely useful, as it provides a wrapper 
around a conventional table environment, to enable some 
spreadsheet-like capabilities within the table (using the LaTeX 
package spreadtab).

It can be downloaded from wiki.lyx.org/Layouts/Modules.

When creating a long(multipage) table within the sLTable environment 
provided by the spreadtab module, there is one small difference 
between the plain LaTeX code produced by LyX 2.3.0 and 2.3.1.

Specifically, LyX 2.3.0 exports the lines:
\sLTable{}{%
\begin{longtable}{|c|c|c|c|c|}
while LyX 2.3.1 exports the lines
\sLTable{}{%
\begin{longtable}[c]{|c|c|c|c|c|}

In practice I think the LyX 2.3.1 version is correct, but it exposes a 
bug in spreadtab module version 1.4, which cannot handle the optional 
[c] argument following \begin{longtable}.


Thus LyX 2.3.0 can successfully generate a PDF file, while LyX 2.3.1 
fails with a LaTeX error. This applies to LyX under both Windows 10 
with MikTeX, and Linux Mint with TeXLive 2017.


An example LyX file is attached, along with the PDF file generated 
successfully from it using File/Export/PDF(ps2pdf) with LyX 2.3.0.


Unfortunately, I am not sure how to fix the bug in the spreadtab 
module, so help on this would be welcome.


Graeme

I'm the author of the module. I'll have a look. Thanks.

Andrew

---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus



Re: [ANNOUNCE] LyX 2.3.1 Released

2018-09-16 Thread Andrew Parsloe

On 17/09/2018 3:49 p.m., Richard Kimberly Heck wrote:

On 09/16/2018 06:09 PM, Andrew Parsloe wrote:

My thanks to the dwindling number of active LyX developers for 2.3.1
and, as a windows user, particularly Riki.

On 17/09/2018 3:40 a.m., Richard Kimberly Heck wrote:

- Use native file dialogs on all platforms by default. It is now
    possible to switch to LyX custom dialogs (which have extra shortcuts
    to relevant directories) by setting the preference
    \use_native_filedialog true


  I am intrigued by this entry in the announcement, which leaves me
confused. I wanted to test it but where does one find this preference?
Tools > Preferences > ??

I do not think there is UI for it (yet). You have to put it manually
into the preferences file.

Riki


OK, thanks. But surely what was intended in the announcement was

\use_native_filedialog false

On my windows 7 system, using "false" here gives a dialogue I haven't seen before. File > 
Open for instance now provides a button for Examples which isn't there when "true" is used, and 
similarly File > New from Template now has a Templates button.

Andrew


---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus



Re: [ANNOUNCE] LyX 2.3.1 Released

2018-09-16 Thread Andrew Parsloe
My thanks to the dwindling number of active LyX developers for 2.3.1 
and, as a windows user, particularly Riki.


On 17/09/2018 3:40 a.m., Richard Kimberly Heck wrote:

- Use native file dialogs on all platforms by default. It is now
   possible to switch to LyX custom dialogs (which have extra shortcuts
   to relevant directories) by setting the preference
   \use_native_filedialog true

 I am intrigued by this entry in the announcement, which leaves me 
confused. I wanted to test it but where does one find this preference? 
Tools > Preferences > ??


Andrew

---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus



Re: Dead lyx

2018-09-14 Thread Andrew Parsloe

On 15/09/2018 2:26 a.m., Scott Kostyshak wrote:

On Fri, Sep 14, 2018 at 09:17:53PM +1200, Andrew Parsloe wrote:


In his opening post Ehud mentioned TeXworks: "Now Latex works fine (through
Texworks) but Lyx does not". In windows systems using MiKTeX, a version of
TeXworks is provided which has its own pdf viewer which LyX can find if,
under Tools > Preferences > File Formats for PDF (pdflatex), Custom is
entered beside Viewer and TeXworks in the neighbouring slot.

Interesting and good to know. Thanks, Andrew. Do you find the PDF viewer
better than others?
No. It's a "toy" pdf viewer -- you can't print from it for instance (at 
least the version supplied with MiKTeX). I still use Sumatra as my main 
pdf viewer (and reluctantly turn to Adobe reader for printing odd and 
even pages separately for two-sided printing).


Andrew



The first time
viewing a document it takes ages to display the pdf since TeXworks needs to
load, but after that it works fine.

I see. That's unfortunate.

Scott



---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus



Re: Dead lyx

2018-09-14 Thread Andrew Parsloe




On 14/09/2018 8:38 p.m., Kornel Benko wrote:

Am Donnerstag, 13. September 2018 19:00:39 CEST schrieb Scott Kostyshak 
:

On Thu, Sep 13, 2018 at 11:15:03PM +0200, Kornel Benko wrote:

OK, but we are still missing the requested log-file (as suggested by Scott).

He sent it to me privately. I won't repost it here, since perhaps there
is something that he does not want to share. I will share part of it
that I don't think has any private information, and that has suggestions
for the problem.

No problem here:

checking for the pdflatex program...
+checking for "pdflatex"...  yes
checking for XeTeX...
+checking for "xelatex"...  yes
checking for LuaTeX...
+checking for "lualatex"...  yes
checking for LuaTeX (DVI)...
+checking for "dvilualatex"...  yes

But:

checking for a PDF previewer...

...

So that would mean that he _can_ compile but cannot preview.
This is neither lyx nor texlive. Installing e.g. package 'okular' should help.

Kornel

In his opening post Ehud mentioned TeXworks: "Now Latex works fine 
(through Texworks) but Lyx does not". In windows systems using MiKTeX, a 
version of TeXworks is provided which has its own pdf viewer which LyX 
can find if, under Tools > Preferences > File Formats for PDF 
(pdflatex), Custom is entered beside Viewer and TeXworks in the 
neighbouring slot. The first time viewing a document it takes ages to 
display the pdf since TeXworks needs to load, but after that it works 
fine. Presumably in Lubuntu and with TeXLive something similar is possible?


Andrew

---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus



Re: Workaround for: WARNING: updating LaTeX or LyX under Windows will currently break LaTeX installation

2018-09-05 Thread Andrew Parsloe




On 5/09/2018 9:45 p.m., Uwe Stöhr wrote:
As of today the update servers are working again. However, one needs a 
workaround because the buggy DLL of MiKTeX prevents the updates from 
being applied.


it seems that the bug affects all users of Windows 7 while Win 10 is 
not affected. For the affected users there is a workaround but you 
need admin permissions and some knowledge:


- open a Windows console as admin (type in "cmd" in the Windows Start 
field, and right-click on it to run it with admin privileges)

- execute these 2 commands subsequently:
initexmf --admin --update-fndb
and
initexmf --admin --mklinks --force
- close the Windows console
- now start the MiKTeX console
- choose there to restart with admin privileges
- check for updates and if there are any apply them

From my point of view I see no other option than to provide a new LyX 
for Windows installer that repairs broken system by executing these 
commands in the background after LyX was installed. This way users 
with problems can just run the Win installer again and get a working 
LyX back in a minute without the need to know about console commands etc.


@developers: Maybe now you see that the Win installer must do more and 
forcing a MiKTeX update is necessary as you can see in this case. We 
cannot say "not our fault". Yes, LyX is not to blame but what matters 
is if users can use LyX. In my case I wanted to write an urgent letter 
with LyX but could not use it and had to use LibreOffice instead.


regards Uwe
I'm on windows 7 and MiKTeX 2.9.  MiKTeX update failed about a week ago 
and I couldn't compile to pdf, nor did instant preview work. The 
following day I tried updating again, and everything worked as it 
should, and as it has done since (including 11 packages updated just a 
few minutes ago). MiKTeX updates from ftp://ftp.tu-chemnitz.de which 
seems a bit odd for someone in New Zealand but MiKTeX selected this 
itself with no help from me. (I think using the "random package on the 
internet" option in the console.) I've now also, after the update, 
compiled a complicated master-child document to pdf, so everything is 
working as it ought.


Andrew



---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus



Re: LyX 2.3.0 - display of int

2018-08-29 Thread Andrew Parsloe

On 30/08/2018 4:00 a.m., Pavel Sanda wrote:

M.B. Schiekel wrote:

I agree with your bet, Pavel :-)
In my last email with my suggested workaraound I wrote:

I compiled LyX-2.3.0 on an openSUSE-Leap-15.0 system with QT-4.8.7
. And hey, all integrals are displayed right :-) So this
integral-display-bug will be most likely in the LyX-2.3.0
interaction with Qt-5.9.4.

Now for LyX-users of openSUSE-Leap-15.0 with KDE-Plasma-5.12.5 and
Qt-5.9.4 this is an unpleasant news, because Leap-15.0 and KDE-Plasma
is meant to be stable and to get a long-term-support. And not every
LyXer likes to search all needed devl-libs and to compile LyX.
If there is open interest of the LyX-community I can offer my
LyX-2_3_0.rpm on an openSUSE-Leap-15.0 system with QT-4.8.7 .

It would be interesting to see in which version exactly the rendering breaks.
I have Qt 5.7.1 (debian stable) and rendering looks OK.
In other words you might get advantages of Qt 5, just use 5.7 instead
of 5.9... If on the other hand you see your problems even with, say 5.7.1,
than it's not generic Qt problem, but something suse-related.

Is someone else around running lyx on Qt>5.7 on different OS than on suse?
What are current windows versions use?

Pavel
My 2.3.0 (not quite Riki's final version) uses Qt 5.10.1. Integrals 
display correctly.


Andrew

---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus



Re: LyX tries to open an additional "$$o" file in SumatraPDF

2018-08-02 Thread Andrew Parsloe




On 3/08/2018 1:38 a.m., Daniel wrote:

I am using LyX with SumatraPDF. Following

https://wiki.lyx.org/LyX/SyncTeX#toc3

I use

SumatraPDF -reuse-instance "$$o" -forward-search "$$t" $$n

However, LyX tries to open an additional "$$o" file in SumatraPDF. Any 
idea what is going on?


Daniel

I have the same setting (under Tools>Preferences>Output>General) and 
forward and reverse search work as they should. This is on  Windows 7. 
The Sumatra version is 3.1.2 64-bit, with LyX Version 2.3.0 (Wednesday, 
27 June 2018) Built from git commit hash 4db6f4e1. (I don't think this 
is Riki's latest installer but one (or two?) before that.)


Andrew

---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus



Re: Show shortcuts in menus

2018-04-12 Thread Andrew Parsloe



On 12/04/2018 6:12 a.m., Richard Kimberly Heck wrote:

On 04/11/2018 01:37 PM, Paul A. Rubin wrote:

On 04/11/2018 11:23 AM, Sasson Technoligies wrote:

hi all,

I'm using LyX Version 2.2.3 Windows 10.
From some reason the keyboard shortcuts are not shown in the 
different menus.
and i can see in screenshots and tutorial of other users that they 
did appear in the menus.
i couldn't find any option in the preferences to show shortcuts in 
the menus

and couldn't find any answer in the archive nor in the wiki docs.
hope you can help me with that
(it's grueling to google every shortcut)
thanks

Display of shortcuts in the menus is hit and miss at best. In LyX 
2.3.0 (on Linux), I get shortcuts for most of the entries in the Edit 
menu but only one in the Insert menu.


I'm not sure many of the Insert entries have shortcuts (other than the 
menu accellerators themselves).


That said, if you're missing shortcuts for entries where other people 
see them, that's a bug.


It'd be nice to know if other Windows users see them.

Riki

They are certainly present on a windows 7 machine running LyX 2.3.0 
(e.g. File menu, New  Ctrl+N, Open  Ctrl+O, etc.).


Andrew


---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus


Re: LyX 2.3.0 and tables with footnotes

2018-04-04 Thread Andrew Parsloe



On 4/04/2018 6:15 p.m., Niklas Huldén wrote:

On 03.04.2018 20:58, Paul A. Rubin wrote:

On 04/03/2018 12:38 PM, Niklas Huldén wrote:

Den 03-04-2018 kl. 18:51, skrev Paul A. Rubin:

On 04/03/2018 10:55 AM, Niklas Huldén wrote:

Hello all!

I am testing LyX 2.3.0 on windows 10 with MikTex 2.9. I have some 
old tables with footnotes inside them which used to line up fine 
with the table using the "minipage trick" putting the table in a 
minipage (whitout the caption).
In LyX 2.3.0 this results in the footnote becoming an ordinary 
footnote, which makes it hard to keep tables and footnotes on the 
same page. But I understand this is a feature now. Is there any 
way to "emulate" the old behavior? I include a MWF and two 
screenshots.


Thanks and all the best!
Niklas
You could add \renewcommand{\tablefootnote}{\footnote} to the 
document preamble. (If you do this a lot, you might want to cobble 
together a module for it.)


Paul

Thank you Paul! This works fine and takes me out of immediate danger 
zone. I guess a module would be a good idea in the long run.


A somewhat linked issue is that I get an error message if I use the 
rotate package in a LyX file that uses tablefootnotes: "Package 
tablefootnote Error: Package rotating loaded after tablefootnote."


Hard to find a place to load rotate before the tablefootnote though.

Many thanks again!

Niklas


Niklas,

I've attached a module. Try putting it in your local layouts folder 
(~/.lyx/layouts on most Linux systems), then reconfigure LyX, add it 
to your document (and do /not/ add the \renewcommand line in the 
preamble), then see if you get the desired results (including using 
the rotate package).


Cheers,
Paul


Hello,

Thank you Paul! I placed the module in (windows 10) 
"c:\Users\myselfwhatever\AppData\Local\LyX 2.3\Resources\layouts\ and 
reconfigured but could not find any module in restarted LyX. This 
might have something to do with my Windows configuration.


I then placed it in "c:\Program Files (x86)\LyX 
2.3\Resources\layouts\" as administrator, reconfigured and now it is 
available in document settings/modules. Everything works including 
getting rid of the rotating error message :)


I will try it in my Mac tonight.

All the best!
Niklas

On Windows 7 the module should go to "C:\Users\name>\AppData\Roaming\LyX2.3\layouts\".  I would expect this to be the 
same on Windows 10. The "c:\Program Files (x86)\LyX 
2.3\Resources\layouts\" location should be left for layouts and modules 
of the official LyX distribution. When LyX 2.3.1 comes out and you 
upgrade, this folder will be overwritten and Paul's module will be lost 
(unless it gets incorporated into the official LyX distro.).


Andrew


---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus



Re: Feedback on dialog for Windows installer (round 2)

2018-04-02 Thread Andrew Parsloe



On 3/04/2018 11:31 a.m., Scott Kostyshak wrote:

I propose to change the first part to something like:
   Your MiKTeX installation must be updated in order for LyX 2.3.0 to
   work. Choose "Continue" to ...

Then, we will give a link to a Wiki page, as discussed before.

This will allow us to keep the main dialog clear, but at the same time
provide extra details for the power users.

What do you think about that approach? If you and others disagree, I'm
fine with specifying the version number required, and in that case I
agree with you that specifying the dates instead of the repository
number is a good idea.

Scott

I like the proposed wording.

Andrew

---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus



Re: Feedback on dialog for Windows installer (round 2)

2018-04-01 Thread Andrew Parsloe

Dear Scott,

MiKTeX 2.9 has been available since 2010 and the *only* version 
available since 2014; see https://miktex.org/releases. Hence the message 
in your proposed dialogue


    LyX requires MiKTeX 2.9 or later. Your version is X.X.
    Choose "Continue" to automatically update MiKTeX now,
    or "Cancel" to stop the LyX installation. If you do not
    understand this message, you should choose "Continue".

                                    Cancel      Continue

doesn't make much sense (to me). It is the package repository number 
that is critical, currently at 6664 at time of writing (see 
https://miktex.org/ under Package Repository) but I don't know what that 
was at the time the update problem arose and in any case it is likely to 
be confusing to an average user.


I think it would be better to use a date: "LyX requires MiKTeX 2.9 
updated later than /mm/dd" (and that format of date to avoid 
ambiguity around dd/mm/ versus mm/dd/). Presumably the date can 
be found from Uwe's announcements to lyx-devel.


Andrew



---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus


Re: LyX 2.2.3 -- MikTeX going berserk?

2018-03-24 Thread Andrew Parsloe

On 25/03/2018 7:44 a.m., Richard Kimberly Heck wrote:

On 03/24/2018 12:58 PM, Bernt Lie wrote:

I'm working in LyX 2.2.3 on 64bit Win10.

Suddenly, a window pops up and asks me (Yes/No) whether I want to allow MikTeX 
make some change on my computer.

No matter what I answer, nothing appears to happen, and the message keeps 
popping up every minute or so...

What's going on?

Maybe someone here will know, but I would suggest you ask the folks at
MikTeX.

It is possible that MikTeX wants to upgrade some package or other.
Apparently, it does
this sometimes. Possibly, there is some background image conversion of
something that
is triggering it. It seems to be possible to turn this off somehow in
MikTeX configuration,
so you might try that.

Riki

I have had this kind of experience when trying to view/compile a 
document for which I'm missing a package. The LaTeX log  in that case 
should tell you what's missing.


Andrew

---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus



Re: Windows users: can you test the 2.3.0 installer?

2018-02-27 Thread Andrew Parsloe



On 28/02/2018 11:12 a.m., Scott Kostyshak wrote:

Dear Windows users,

We received a report that the Windows installer lead to an error, so I
would like to get some more testing before we announce the release.

Can you test the installer for 2.3.0?

   ftp://ftp.lyx.org/pub/lyx/bin/2.3.0

If you test, which installer did you test: the "bundle" or the
"installer"?

Did you get a popup from the MiKTeX package manger during the
installation process? If you just close that popup, does everything
continue as normal?

Do you get any other errors? After you install it, are you able to open
Help > User Guide and compile it without error?

Thanks,

Scott
I had no problems with the installation (windows 7, installer rather 
than bundle). I always install offline to avoid possible hassles with 
the interaction with MiKTeX, which I keep up to date independently.


Andrew

---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus



Re: 回复:help, tex braces

2018-02-22 Thread Andrew Parsloe


On 23/02/2018 8:01 a.m., dongcheng wrote:
Just lyx. when saved .lyx file is opened, multiple braces inserted as 
tex code in math mode  become single one in lyx editor




在2018年02月23日 02:22,Scott Kostyshak 
写道:
On Thu, Feb 22, 2018 at 01:31:35PM +, dongcheng wrote:
> 如何关闭 "打开文件时, 自动去除多余 tex 大括号" 的功能
>
>
> tex code:
> Do not remove the braces , no {{ }} -> {} ,  When the file is
opened.
>
>
> The use of the package ''esdiff'' is affected.

Is this a problem for importing .tex or do you mean just if you
insert
double braces in LyX, they are converted to single braces?

I ran into this problem some years ago. Guillaume pointed out that this 
is ticket #9348 ("Curly brackets are removed on opening when they should 
not").


Andrew


---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus


Re: Small poll - download speed of LyX installers

2018-02-17 Thread Andrew Parsloe



On 17/02/2018 5:20 a.m., Pavel Sanda wrote:

Hello lyx users,

it has been brought to our(=developers) attention that downloading speed of lyx
installers might become too slow on various places over the globe. The size of
installers was steadily growing past years and 220 MB might indeed pose problem
in case users end up with connections speeds about ~10kbs...

That's why this small poll - we would be intersted to know how bad the situation
generally is -- especially outside of Europe.

If you have one minute of spare time could you download this file
ftp://ftp.lyx.org/pub/lyx/devel/lyx-2.3/lyx-2.3.0rc2/LyX-2.3.0rc2+qt5-x86_64-cocoa.dmg
and report:

1. time to download (/ download speed)
2. country (and/or domain) where you download from
3. whether you download from home/academic network/large company...
(you don't have to report more details than it feels comfortable...)

Both good and bad answers matter, we want to know whether this is sporadic
or widespread problem.

In case your download of the link above is more than couple seconds, it would
be useful if you also reported whether some of the mirror servers listed at
http://www.lyx.org/Download#toc11 which are closer to your geographical
location perform better.

Thanks for your time,
Pavel
Home computer in Dunedin, southern New Zealand. Linked to fibre network 
by ethernet cable rather than wifi. Windows 7. I've simply read the 
download speeds from Firefox. They fluctuate around the figure I've 
given (apart from UCSD which was rock steady).

ftp.lyx.org  850 kB/s (morning); 800 kB/s (evening)
UCSD  1.4 MB/s
Greece  780 kB/s
Poland  650 kB/s
SA  540 kB/s
Italy  couldn't connect

Andrew

---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus



Re: Invoking spreadtab.sty [UPDATE]

2017-12-22 Thread Andrew Parsloe



On 23/12/2017 10:44 a.m., Rich Shepard wrote:

On Fri, 22 Dec 2017, Rich Shepard wrote:


 Having put \usepackage{spreadtab} in the preamble, I assume that I put
the ERT \begin{spreadtab} just above the table and the ERT 
\end{spreadtab}
immediately following the table (similar to use of the \multicol 
package.)


 Is this correct?


  Apparently not; but I may well be wrong.

  Expanding my request for help with spreadtab, how do I enter 
formulae in a

cell (e.g., c2*e2) or relative references (using backets to define the
relative cell positions)?

  The spreadtab docs describe doing this in LaTeX and I'd appreciate
pointers on using this package in LyX.

TIA,

Rich
Rich, some years ago I developed a module so that spreadtab could be 
used in LyX and if instant preview  was on it allowed a kind of 
lightweight interactive spreadsheeting. I used it for keeping a 
timesheet when I was freelancing as an indexer. There's a link to a 
dropbox folder, holding a zipped archive of the module and explanatory 
document, on the wiki: item 1.5 at http://wiki.lyx.org/Layouts/Modules. 
The module provides a command for turning a table built in LyX into a 
spreadtab table. There are a couple of other helper commands defined too.


It is some time since I last looked at this -- the dropbox link is to a 
LyX 2.1 document -- so my knowledge is a bit rusty but I imagine it 
would come back. Possibly the examples in the document would give you 
all the help you need.


Andrew

---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus



Re: Have you tested 2.3.0beta1?

2017-09-06 Thread Andrew Parsloe



On 6/09/2017 11:25 a.m., Scott Kostyshak wrote:

I have not seen many bugs that have been reported regarding 2.3.0beta1.
I would like to know whether this means that 2.3.0beta1 can be
considered stable, which is what I believe, or whether it is just that
not many people have tested it and that is why there have not been many
bug reports.

If you've tested, it would be useful if you just respond with e.g. "yes
I briefly tested and didn't find any issues".

If you're interested in testing, please back up all of your files.

One useful way to test is to compile your current .lyx files. If you get
a LaTeX error where with a previous .lyx file you did not, then that
could be a bug.

Thanks,

Scott

My documents are compiling without problem with beta1. However, I 
haven't been using LyX intensively just at the moment.


Andrew

---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus



Re: Help improve LyX's defaults by sharing your preferences

2017-07-25 Thread Andrew Parsloe



On 26/07/2017 10:11 a.m., Uwe Stöhr wrote:

El 25.07.2017 a las 20:49, Scott Kostyshak escribió:


In windows the default is 120.


Yes, because that fits for the most Windows versions I had access to to
test. You can change it easily:

- either use Ctrl + Mouse wheel for the current LyX session
- or change the value in the LyX preferences in the section
  Look -> Screen Fonts.


(I renamed my personal LyX2.3 folder so that

LyX had to create a fresh one.


This is my comment (AP).



Why?


So that LyX would create a new folder with default settings (in order to 
see what the default windows zoom is), as you note below. But my own 
preference settings were still available in the renamed folder.


Andrew


If you want to delete all your personal settings, just close LyX, delete
this folder and then restart LyX. LyX will recreate the folder with
default settings.

regards Uwe



---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus



Re: Issues using lyx

2017-06-18 Thread Andrew Parsloe



On 19/06/2017 6:36 a.m., Cris Fuhrman wrote:

I use LyX a lot with Windows 10, and have had some spontaneous crashes
that are hard to reproduce in small documents. They have happened when
selecting large parts of a document (the selection scrolling beyond the
current window is expanded super fast downward, across many parts of a
document including figures, appendix, and then... boom!).
Inline image 1

I just tried this in LyX 2.3.3 on one of my big exam files, and it's
still a problem. I tend to NOT use the emergency file, and I've learned
NOT to do big mouse selections (I select only with shift and arrow
keys). This may not be William's problem, but could be related to it.



This sounds like #10324 -- exactly the same error message. It seems to 
be more general than my initial report. I am on Windows 7 (so it's not a 
Windows 10 issue) and could raise the error back to LyX 2.1.5 (comment 9 
of #10324).


Andrew

---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus



Re: Help improve LyX's defaults by sharing your preferences

2017-06-06 Thread Andrew Parsloe



On 7/06/2017 8:26 a.m., Scott Kostyshak wrote:

On Tue, Jun 06, 2017 at 08:02:26PM +, Steve Burnham wrote:


I hope it's not too late to contribute my preferences file.


It is not, thank you!


The one
default I am surprised by is the screen zoom/font size. I set my zoom to
200%. It's just far too small by default. I'm not that old either (31) and
do have good vision.


Taking a quick look at what we have so far:

linux/subaochen:\screen_zoom 215
linux/john:\screen_zoom 135
linux/rich:\screen_zoom 115
linux/charlie.txt:\screen_zoom 126
linux/guillaume:\screen_zoom 170
windows/andrew:\screen_zoom 130
windows/steve:\screen_zoom 200
windows/cris:\screen_zoom 200
windows/john:\screen_zoom 130

The average of the above values is 158.

The default is 150. I'm not convinced there's enough evidence to change
the default.

Scott

In windows the default is 120. (I renamed my personal LyX2.3 folder so 
that LyX had to create a fresh one. This is the value that results.) In 
fact I'm trying 150 (having previously used 130). It's certainly easier 
on my aging eyes.


Andrew

---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus



Re: Help improve LyX's defaults by sharing your preferences

2017-06-03 Thread Andrew Parsloe



On 2/06/2017 8:07 a.m., Scott Kostyshak wrote:


Preferences in particular that I'm curious about are:

  screen zoom
  continuous spellcheck
  math preview

Please state your OS with the categories of Windows, Mac, or Linux. This
is important because it is possible to have different default
preferences on different platforms.

Attached is my preferences file.

Scott

Attached are the relevant entries of my preferences on a 64 bit windows 
7 machine. No spellchecking, maths preview on. The screen zoom has 
increased from 100 when I discovered LyX about 12 years ago to 130 now. 
Aging eyes -- but I see others using even higher zoom levels.


Andrew



---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus
# LyX 2.3.0alpha1-1 generated this file. If you want to make your own
# modifications you should do them from inside LyX and save.

Format 21

#
# MISC SECTION ##
#
# The time interval between auto-saves in seconds.
\autosave 60
\index_command "makeindex -c -q -s twospaces.ist"
\kbmap true
\kbmap_primary "european"
\user_name "Andrew"
\preview on

#
# SCREEN & FONTS SECTION 
#

\icon_set "classic"
\screen_zoom 130
\cursor_width 2
\screen_font_sizes 5 7 8 9 10 12 14.4 17.26 20.74 24.88
\fullscreen_statusbar false
\forward_search_pdf "SumatraPDF -reuse-instance \"$$o\" -forward-search \"$$t\" 
$$n"
#
# FILE SECTION ##
#

\document_path "D:\Documents"
\template_path "C:\Users\Andrew\AppData\Roaming\LyX2.2\templates"
\plaintext_linelen 70
\backupdir_path "E:\Lymbo"

#
# SPELLCHECKER SECTION ##
#

#
# LANGUAGE SUPPORT SECTION ##
#

#
# FORMATS SECTION ##
#

\format "lyx" "lyx" "LyX" "" "notepad++" "" "document" "application/x-lyx"

#
# CONVERTERS SECTION ##
#

\converter "pdflatex" "pdf2" "pdflatex  -interaction=nonstopmode -synctex=1 
$$i" "latex=pdflatex"
\converter "dvi" "ps" "dvips -E -o $$o $$i" ""
\converter "latex" "rtf" "c:/PROGRA~2/latex2rtf/latex2rt.exe -P 
c:progra~2/latex2rtf/cfg $$i" ""
\converter "rtf" "latex" "\"C:\\Program Files 
(x86)\\rtf2latex2e\\rtf2latex2e.exe\" -n -P \"C:\\Program Files 
(x86)\\rtf2latex2e\\pref\" $$i" ""


Re: lyx to latex

2017-03-20 Thread Andrew Parsloe



On 20/03/2017 2:22 p.m., John White wrote:

Apparently. At least I don't see it in lyx 2.2.2.

We are required occasionally by a court to submit proposed orders in
microsoft word. These are on pleading paper. Easy to prepare the order
in lyx but in exporting it to microsoft it loses the line numbers.
Libreoffice and openoffice do a better job, but when exporting from
either libreoffice or openoffice to .doc, the line numbers are also lost.

I can't recall if I had this problem when we could export directly from
lyx to rtf, but I don't think so.

John

On Monday, March 20, 2017 1:12:03 AM PDT Patrick Dupre wrote:

 > Hello,

 >

 > If I remember correctly, I was able to convert directly a lyx file to a

 > rtf file in the past. Did this option disappear ?

 >

 > Thank.

 >

 >
===

 > Patrick DUPRÉ | | email: pdu...@gmx.com

 > Laboratoire de Physico-Chimie de l'Atmosphère | |

 > Université du Littoral-Côte d'Opale | |

 > Tel. (33)-(0)3 28 23 76 12 | | Fax: 03 28 65 82 44

 > 189A, avenue Maurice Schumann | | 59140 Dunkerque, France

 >
===

I'm on windows, so the detail will be different, but I can export 
directly from LyX 2.2.2 to rtf. I had to set up the converter myself, 
using latex2rtf. In Tools > Preferences > File Handling > Converters I 
have a converter from LaTeX (plain) to Rich Text Format (so LyX exports 
first to LaTeX then from LaTeX to rtf) and in the Converter slot I have


c:/progra~2/latex2rtf/latex2rt.exe -P c:progra~2/latex2rtf/cfg $$i

latex2rtf is installed at "C:/Program Files (x86)/latex2rtf". The 
"c:/progra~2" is the windows way of coping with the spaces in 
"C:/Program Files (x86)".


(The export works; latex2rtf has got better over the years.)

Andrew




---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus



Re: Numbering of Theorems, etc.

2017-02-13 Thread Andrew Parsloe



On 9/02/2017 9:16 a.m., Andrew Parsloe wrote:



On 9/02/2017 5:01 a.m., Bernt Lie wrote:


I have now created a new account, and almost finished setting up the
computer. HOWEVER, the AMS environments received from Andrew Parsloe
doesn’t work properly (they used to work on my old account…). Here is
the error message I get when I open my file which utilizes the number of
theorems by chapter and type:

This is what I have done:

1.I saved the files from Andrew of November 17, 2016, in the %appdata%
under LyX2.2/templates






Any clues as to what may be wrong?

-BL


The files should go in your LyX2.2/layouts folder Bernt. Shift them
there and then reconfigure.

Andrew


The lists have been down. Did you get this reply Bernt and did it work?

Andrew

---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus



Re: Fwd: Re: Required packages

2017-01-07 Thread Andrew Parsloe



On 8/01/2017 4:24 a.m., Uwe Stöhr wrote:


Am 07.01.2017 um 10:06 schrieb Andrew Parsloe:


I recently needed to re-install MiKTeX. I chose the basic package to
make the download manageable, but it installs nothing like all the
packages that LyX uses. For additional packages I was guided by the
packages listed under Help > LaTeX Configuration, and then by the
packages listed in the yellow notes at the start of some of the LyX
docs. However this is still inadequate for compiling the LyX docs.


The problem was a bug in MiKTeX's installer: It did not work unless one
added something to the proxy field. To fix this, open the program

MiKTeX update (admin)

There click on the button "Connection settings" and use the option to
use a proxy. As address just type in "test". (Port is 8080) and press OK.
Now continue the updating.

Afterwards MiKTeX should be in shape again. Now you can log in ad Admin
in Windows, open LyX and reconfigure LyX. Now all necessary packages to
compile all LyX documentation files should be installed.

If this fails, please report back.

regards Uwe

p.s. for further MiKTeX updates you could remove the dummy proxy "test"
and do it without any proxy.

Thank you Uwe. I had read about the need for the proxy business and 
found that it worked. I work offline most of the time and my point in 
the original post was really about what packages are needed to compile 
the LyX docs. LyX's own list at Help > LaTeX Configuration and the 
yellow notes at the start of some of the LyX docs still leave out quite 
a number of packages needed for the docs to compile.


Andrew

---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus



Re: LyX 2.2.2 & reconfigure -- MikTeX problems?

2017-01-06 Thread Andrew Parsloe



On 7/01/2017 12:42 p.m., Bernt Lie wrote:



You may be missing the package miktex-jpeg-bin-2.9. Run the MiKTeX

package manager as administrator and check down the list of files. If

you have the package it will show a date when it was installed (in the

fifth column). If you haven't got the package there will be a blank

there, in which case highlight the entry then click the + button in the

upper left (below File) in the package manager dialogue and (provided

you are online) the package will be installed.

Andrew

--

Thanks, Andrew: where do I find the MikTeX packet manager?

-B

This may be different on Windows 10 but on Windows 7 you go to the Start 
button, choose All Programs, scroll to MiKTeK 2.9, open the folder, then 
Maintenance (Admin). This contains the package manager, settings and 
update. (I've created shortcuts to all three since I use them often.)


Andrew

---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus



Re: LyX 2.2.2 & reconfigure -- MikTeX problems?

2017-01-06 Thread Andrew Parsloe



On 7/01/2017 7:43 a.m., Bernt Lie wrote:

Sent from my Windows 10 phone

*From: *Wolfgang Engelmann 
*Sent: *Friday, January 6, 2017 18:47
*To: *lyx-users@lists.lyx.org 
*Subject: *Re: LyX 2.2.2 & reconfigure -- MikTeX problems?

On 06.01.2017 11:33, Bernt Lie wrote:

Hi

I recently installed LyX 2.2.2 on my brand new Dell workstation, and
use Windows 10 Pro (it was set up with Win 10 Enterprise when I
installed LyX 2.2.2, but I have just "downgraded" it to Pro to have
faster updates...)

When I installed LyX 2.2.2, there was some message (error message?)
related to MikTeX. I just installed Andrew Parsloe's files for
numbering theorems etc. after chapter number, and then try to
reconfigure LyX.

This is what happens:

 1. First, the following message pops up:

cid:part1.88A46D20.181CB5FC@uni-tuebingen.de

 2. When I click OK, the response is as follows:

cid:part2.F4462D50.840B0082@uni-tuebingen.de

Does this mean that I have a problem? Should I un-install and
re-install LyX? Should I re-install v. 2.2.2 (wasn’t there some
problems with 2.2.2?), or install v. 2.2.1?

Thanks,

Bernt


tools>reconfigure

and open lyx again. That should do it.
Wolfgang

--

Thanks, Wolfgang. I’ve done this several times, but the MikTeX error
message persists…

-B

You may be missing the package miktex-jpeg-bin-2.9. Run the MiKTeX 
package manager as administrator and check down the list of files. If 
you have the package it will show a date when it was installed (in the 
fifth column). If you haven't got the package there will be a blank 
there, in which case highlight the entry then click the + button in the 
upper left (below File) in the package manager dialogue and (provided 
you are online) the package will be installed.


Andrew

---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus



Re: Numbering of Theorems, etc.

2016-11-17 Thread Andrew Parsloe



On 17/11/2016 10:56 p.m., Bernt Lie wrote:


-Original Message-
From: lyx-users@lists.lyx.org [mailto:lyx-users@lists.lyx.org] On Behalf Of 
Andrew Parsloe
Sent: torsdag 17. november 2016 10.43
To: lyx-users@lists.lyx.org
Subject: Re: Numbering of Theorems, etc.



On 17/11/2016 9:43 p.m., Bernt Lie wrote:

-Original Message-

From: lyx-users@lists.lyx.org [mailto:lyx-users@lists.lyx.org] On
Behalf Of Andrew Parsloe


Perhaps I've misunderstood, but it seems to me what is wanted is
the module Theorems (Numbered by

Type within Chapters) that comes with LyX.

This allows one to number by type within chapters each of theorems,
corollaries, lemmas, propositions,

conjectures, facts, definitions, examples, problems, exercises,
remarks and claims.

 Andrew

--

Thanks Andrew. Yes, that's what I also thought, but this has no
effect... Choosing

and

seems to give the same result. I don’t understand why. (Is it because
the first selection says AMS, Numbered by Type, and the second one
doesn’t mention AMS?)

Anyway, depending on which choice I make first, not all choices are
available. Example: with the latter of these choices (both Theorems
(AMS, ...) and Theorems (Numbered by Type...)...

·if I try to select Theorems (AMS, ...) first, option “Delete” is not
available

·so I have to delete the second option first, and then after that, I
can delete “Theorems (AMS, ...)”.

Likewise, module “Theorems (Numbered by Type within Chapters)” – which
is really what I want – can only be added if I **first** add “Theorems
(AMS, Numbered by Type)”... and then it doesn’t give the expected effect.

Ideally, this is how I’d like it to work, without having to “hack” in
the preamble...

--

Thanks,

Bernt



 LyX doesn't supply all the modules necessary to use AMS environments 
numbered by type within
 chapters. I ran into this problem some weeks ago but found I could create 
or adjust the necessary
 modules using the supplied ones as models. I've attached the new/adjusted 
ones to this email. Place
 them in the layouts folder of your personal LyX directory.
 Then you will need to reconfigure LyX so it knows of them.

 There are dependencies among the modules which is why some can't be added 
or deleted without
 others.
--
Thanks, Andrew...

* I will probably be able to figure out what the "layouts folder of your personal 
LyX directory" is. I *assume* that what I have to do, is simply save the attached 
files in this folder. (Explorer... using %appdata%, I found folder layouts under LyX2.2.)

* "Then you will need to reconfigure LyX so it knows of them". Here, I'm lost 
as to what this means. Does this simply mean: go into Document Settings of LyX, and add 
the new modules in the Modules part? Or something entirely different?




-Bernt

OK, I see others have intervened while I've been asleep but for 
completeness I'll answer anyway.


"layouts folder of your personal LyX directory": On my windows 7 
machine, the folder is C:\Users\Andrew\AppData\Roaming\LyX2.2\layouts. 
(On your machine obviously the "Andrew" will be different but the folder 
you've discovered sounds like the right one.) Save the files to this folder.


Reconfiguring LyX: Open LyX. Under Tools > Reconfigure click 
Reconfigure. A lot of activity will show in the status bar at the bottom 
of the LyX window, LyX may even seem to freeze for some seconds, and 
then a message box should pop up telling you to close then restart LyX. 
When you do and go to Documents > Settings > Modules the new modules 
should be present in the list.


Andrew

---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus



Re: Numbering of Theorems, etc.

2016-11-17 Thread Andrew Parsloe



On 18/11/2016 5:43 a.m., Richard Heck wrote:

On 11/17/2016 04:42 AM, Andrew Parsloe wrote:


LyX doesn't supply all the modules necessary to use AMS environments
numbered by type within chapters. I ran into this problem some weeks
ago but found I could create or adjust the necessary modules using the
supplied ones as models. I've attached the new/adjusted ones to this
email. Place them in the layouts folder of your personal LyX
directory. Then you will need to reconfigure LyX so it knows of them.

There are dependencies among the modules which is why some can't be
added or deleted without others.


Thanks for these. I've committed them, but I guess I should first have
asked for a GPL declaration, so I can add you to the credits. Can you
just send a short email to lyx-devel saying something like: I hereby
agree to license my contributions to LyX under the General Public
License, version 2 or any later version?

Richard



OK, I'll do that, although my contribution was largely mechanical. I 
gather from comments in the modules that the "real work" was done by 
Paul Rubin building on earlier work by you.


Andrew

---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus



Re: Numbering of Theorems, etc.

2016-11-17 Thread Andrew Parsloe



On 17/11/2016 9:43 p.m., Bernt Lie wrote:

-Original Message-

From: lyx-users@lists.lyx.org [mailto:lyx-users@lists.lyx.org] On Behalf
Of Andrew Parsloe


   Perhaps I've misunderstood, but it seems to me what is wanted is the
module Theorems (Numbered by

   Type within Chapters) that comes with LyX.

   This allows one to number by type within chapters each of theorems,
corollaries, lemmas, propositions,

   conjectures, facts, definitions, examples, problems, exercises,
remarks and claims.

Andrew

--

Thanks Andrew. Yes, that's what I also thought, but this has no
effect... Choosing

and

seems to give the same result. I don’t understand why. (Is it because
the first selection says AMS, Numbered by Type, and the second one
doesn’t mention AMS?)

Anyway, depending on which choice I make first, not all choices are
available. Example: with the latter of these choices (both Theorems
(AMS, ...) and Theorems (Numbered by Type...)...

·if I try to select Theorems (AMS, ...) first, option “Delete” is not
available

·so I have to delete the second option first, and then after that, I can
delete “Theorems (AMS, ...)”.

Likewise, module “Theorems (Numbered by Type within Chapters)” – which
is really what I want – can only be added if I **first** add “Theorems
(AMS, Numbered by Type)”... and then it doesn’t give the expected effect.

Ideally, this is how I’d like it to work, without having to “hack” in
the preamble...

--

Thanks,

Bernt



LyX doesn't supply all the modules necessary to use AMS environments 
numbered by type within chapters. I ran into this problem some weeks ago 
but found I could create or adjust the necessary modules using the 
supplied ones as models. I've attached the new/adjusted ones to this 
email. Place them in the layouts folder of your personal LyX directory. 
Then you will need to reconfigure LyX so it knows of them.


There are dependencies among the modules which is why some can't be 
added or deleted without others.


Andrew


---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus
# Original Author : David L. Johnson <d...@lehigh.edu>
# Probably broken by Jean-Marc Lasgouttes <jean-marc.lasgout...@inria.fr>
# modified and modularized by Emmanuel GUREGHIAN <gureg...@boston.bertin.fr>
# Tinkered with Sep. '07 by Paul Rubin <ru...@msu.edu>
# Modularized Jan 08 by Richard Heck <rgh...@comcast.net>
# Hacked June '09 by Paul Rubin <ru...@msu.edu> to use separate counters
# Chapter dependence added Oct '16 by Andrew Parsloe <apars...@clear.net.nz>

# The environments defined are :
# - Theorem
# - Corollary
# - Lemma
# - Proposition
# - Conjecture
# - Fact
# - Definition
# - Example
# - Problem
# - Exercise
# - Solution
# - Remark
# - Claim
# - Case (by inclusion)


# We need separate counters for each theorem-like style.
Format 60
Counter theorem
End
Counter corollary
End
Counter lemma
End
Counter proposition
End
Counter conjecture
End
Counter fact
End
Counter definition
End
Counter example
End
Counter problem
End
Counter exercise
End
Counter solution
End
Counter remark
End
Counter claim
End

OutlinerName thm "Definitions & Theorems"

Style Theorem
Category  Reasoning
MarginFirst_Dynamic
LatexType Environment
LatexName thm
NextNoIndent  1
ResetArgs 1
AddToToc  thm
IsTocCaption  1
Argument 1
LabelString"Additional Theorem Text"
Tooltip"Additional text appended to the theorem header"
IsTocCaption  1
EndArgument
LabelSep  xx
ParIndent MMM
ParSkip   0.4
ItemSep   0.2
TopSep0.7
BottomSep 0.7
ParSep0.3
Align Block
AlignPossible Left
LabelType Static
LabelCounter  theorem
LabelString   "Theorem \thechapter.\thetheorem."
Font
  Shape   Italic
  SizeNormal
EndFont
LabelFont
  Shape   Up
  Series  Bold
EndFont
Preamble
\theoremstyle{plain}
\ifx\thechapter\undefined
\newtheorem{thm}{\protect\theoremname}
  \else
  \newtheorem{thm}{\protect\theoremname}[chapter]
\fi
EndPreamble
LangPreamble
\providecommand{\theoremname}{_(Theorem)}
EndLangPreamble
BabelPreamble
\addto\captions$$lang{\renewcommand{\theoremname}{_(Theorem)}}
EndBabelPreamble
Requires  amsthm
End


Style Corollary
CopyStyle Theorem

Re: Numbering of Theorems, etc.

2016-11-16 Thread Andrew Parsloe



On 17/11/2016 6:02 a.m., Richard Heck wrote:

On 11/16/2016 04:03 AM, Bernt Lie wrote:


*From:*Richard Heck [mailto:rgh...@lyx.org]
*Sent:* tirsdag 15. november 2016 19.04
*To:* Bernt Lie ; LyX Users 
*Subject:* Re: Numbering of Theorems, etc.

On 11/15/2016 09:43 AM, Bernt Lie wrote:

I use LyX 2.2.1 (currently) on Windows 10.

I have a rather long document (some 600 pages, with 9 chapters +
several appendices), and want to number Exercises, Problems,
Examples, Theorems, etc. **independently** and numbered **by the
chapter** (or appendix) they appear in. Thus, exercises in chapter
6 should be numbered Exercise 6.1, Exercise 6.2, etc., while
examples in chapter 6 should be numbered Example 6.1, Example 6.2,
etc.

Currently, this doesn’t work. My set-up is:

·Document class: Book (Standard Class)

·Modules: Theorems (AMS, Numbered by Type)

What else do I need to set?


I assume the problem is that you are not getting the "numbered by
chapter" bit? If so, then maybe the easiest thing to do is use the
internal LaTeX command \@addtoreset in the preamble, thus:
\@addtoreset{theorem}{chapter}
Now the theorem counter gets reset whenever the chapter counter is reset.

You'll need to do the same thing for any other counters you are using,
and see the theorems-ams-bytype.inc file for the names of the various
counters.

See also: http://www.tex.ac.uk/FAQ-addtoreset.html.

Richard

--

Richard,

Thanks for quick reply. I’ve tested it (inserting
“\@addtoreset{theorem}{chapter}” in the preamble), but now get the
following error messages:

OK. Let me try to be a little bit more precise. Currently, the
counters count independently. In other words, Definition 1, Definition
2, Theorem 1, Definition 3, Theorem 2, Example 1, etc.

However, they (i) do not contain a chapter counter, and (ii) they do
(obviously) not reset the chapter counter in each chapter.



See the attached. Sorry, I got the names of the counters wrong. (I mixed
up the LyX counters and the LaTeX ones.) The LaTeX names are the same as
the names of the environments as they are declared in the preamble, e.g.:
 \newtheorem{lem}{\protect\lemmaname}
So the counter is "lem" for Lemmas.

Richard

Perhaps I've misunderstood, but it seems to me what is wanted is the 
module Theorems (Numbered by Type within Chapters) that comes with LyX. 
This allows one to number by type within chapters each of theorems, 
corollaries, lemmas, propositions, conjectures, facts, definitions, 
examples, problems, exercises, remarks and claims.


Andrew

---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus



Re: how to itemize exercises?

2016-10-30 Thread Andrew Parsloe



On 30/10/2016 4:04 p.m., subaochen wrote:

hi all,

I want to use Theorems module to itemize excercises, please refer to
attachment for a test file.

But when preview with pdf file, the exercises are not itemized, just the
first exercise have the prefix number, I don't know what I'm missing.

Thanks in advance for any help!

--
Best regards,
Baochen Su


With the cursor placed after "exercise 1", try Edit>Start New 
Environment (shortcut Alt+P Return). Repeat as necessary.


Andrew

---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus



Re: Miktex package management inadequate, want to transition to TexLive.

2016-10-29 Thread Andrew Parsloe



On 29/10/2016 7:35 p.m., CarLaTeX wrote:


2016-10-29 8:09 GMT+02:00 Paul Johnson >:

I wonder if Windows users see this problem in MikTeX regularly. I'm a
Linux user, but I try to help the Windows students around here.


[...]


--
Paul E. Johnson http://pj.freefaculty.org
Director, Center for Research Methods and Data Analysis
http://crmda.ku.edu

To write to me directly, please address me at pauljohn at ku.edu
.


I'm using LyX (various version, now 2.2.2) with MiKTeX (2.9) on Windows
(10) since April 2015 with no problems.
Today the site is down but you should only have to wait few hours.
Bye!

Carla


Yesterday, like others, I couldn't update MiKTeX. This morning (8.20 
a.m. New Zealand time) everything proceeded smoothly.


Andrew

---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus



Re: Recommended PDF viewer?

2016-10-24 Thread Andrew Parsloe

On 25/10/2016 1:54 p.m., Cris Fuhrman wrote:



On Friday, 21 October 2016, Wierdl Máté > wrote:

So then what is the recommended PDF previewer for LyX on Windows 10


I use Sumatra PDF. LyX can be configured for it with synctex for forward
and backward search. https://wiki.lyx.org/LyX/SyncTeX#toc2 That feature
is a huge help with the non WYSIWYG aspect of TeX.


The instructions on the wiki are admirably clear. Having followed them, 
I find, with LyX 2.2.2 and SumatraPDF v.3.1.2 64 bit, that the checkbox 
Synchronize with output in  Document>Settings>Output seems to have no 
effect, one way or the other. Forward and inverse search work 
irrespective of whether it is set or not.


Andrew

---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus



Re: ~

2016-08-23 Thread Andrew Parsloe


On 23/08/2016 9:49 p.m., Bernt Lie wrote:



I often run into the problem of copying/pasting among 3-4 (or
whatever) different symbols/groups of symbols. Is there a way to
*name* these copies, and pasting them back with reference to the
name? (OK... I realize that this is akin to the "fragment" system I
have asked about before...).

-Bernt Lie



Have you tried Edit > Paste Recent?

Andrew

---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus



Re: Refresh child document preview

2016-06-16 Thread Andrew Parsloe

On 17/06/2016 3:09 a.m., Guillaume Munch wrote:

Le 16/06/2016 15:21, Kiuhnm a écrit :

Hello,

I put a child document (TikZ file) inside a "preview box" and I can see
the image inline. The problem is that if I change the child document,
the preview is not updated. Restarting LyX (2.2.0) or reinserting the
child document solves the problem, but that's very tedious. Is there a
more convenient way?



For now, change zoom? (e.g. Ctrl+Mouse wheel)
I've recently discovered this trick, but prefer to do it in a more 
systematic way. I've created a command sequence shortcut:


command-sequence buffer-zoom-in; buffer-zoom-out

and associated it with a shortcut key (Tools > Preferences > Editing > 
Shortcuts). In fact I've used Alt+Z for no particular reason. This 
leaves your screen font at exactly the same size as before but gets all 
the previews refreshed.


Andrew

---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus



Re: Issue with Spreadtab module

2016-05-29 Thread Andrew Parsloe

On 29/05/2016 11:50 p.m., Ron Stone wrote:

Hi,

One of the documented features of the spreadtab module is the ability to save 
calculated values (see section 1.6 of the SpreadtabWithLyx.pdf)

The method described is not working either in LyX 2.1 or 2.2. The instructions say 
to insert > Short Title before the table, but it does not exist in these 
versions, and the source file of the instructions (SpreadtabWithLyx.lyx) throws an 
error on section 1.6 when building:

\sLRetrieve{\Balance}
.\label{If-we-wish} It is tempting to put this
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.

Does anyone know if there is currently a way to save cell results for reuse 
outside the table? This is important for the situation I’m working with.

Thanks,

Ron
I'm the author of this module Ron. I was alerted to this failure just a 
week ago by another frustrated user. I'm in the process of updating the 
module and documentation. In the meantime you can do the following. Open 
spreadtab.module in a text editor. Scan down until you come to the line


InsetLayout Flex:sLSaveCell

In the definition of sLSaveCell, scan down to the line PassThru  0. 
Change the 0 to 1 so it reads  PassThru  1. Save and close the module. 
(The 0 can have got there only through some kind of brain fade on my 
part. The 1 is essential if a backslash, as occurs in \Balance, is to be 
interpreted correctly. Alternatively, it's possible I intended \Balance 
to be entered in an ERT inset but forgot to document the fact.)


The other complication is the changed handling of LaTeX arguments in 
styles and insets in LyX from (was it?) 2.1.4. Because of this change, 
some areas of the documentation are no longer accurate. To save the 
contents of a cell you need to put the sLSaveCell inset into the 
Required argument inset that should be visible in the example tables 
when you click the cursor in them, and can also be inserted from the 
Insert menu (located in the area of that rather long menu where Short 
Title lurks) when the cursor is in an sLTable environment.


Finally, when using saved results later in a document, you need to be 
aware of the limitations of instant preview, which doesn't know about 
values calculated in earlier previews, except when the document is first 
opened, so you may want to save, close and re-open the document to see a 
saved value used later. (The pdf is unaffected by this limitation.)


Having not heard a peep about the spreadtab module for years (hence its 
neglect), it's disconcerting but cheering to find two people, within 10 
days, have actually had a look at it.


Andrew

---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus



Re: Automatic save of LaTeX

2016-04-05 Thread Andrew Parsloe

On 6/04/2016 8:55 a.m., Anders Host-Madsen wrote:

Thanks, that works. I see I can use the command-sequence to combine
the commands. So, now it works.
I'm interested to know whether this really does work. In the past when 
I've tried to use command-sequence with export or save operations it has 
run into problems with threaded code -- an export or save is not 
completed before the next command in the sequence is initiated.


Andrew

---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus



Re: what exactly is the "latex protocol" of a lyx document

2016-04-02 Thread Andrew Parsloe

On 3/04/2016 6:12 a.m., Michael Berger wrote:

Hi all,
please, will somebody be so kind as to explain to me what the "Latex 
protocol of a Lyx document" is. Is it the tex-code of my Lyx document 
when opened in an editor, e. eg. in Kile?


Thanks,
Michael Berger


I wonder if "Latex preamble" is meant?

Andrew

---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus



Re: How can I preview pdf in adobe reader or other editor instead of Yap using lyx

2015-10-08 Thread Andrew Parsloe

On 9/10/2015 3:56 a.m., yan song wrote:
I recently installed lyx on a new computer. And it seems that I can't 
preview the pdf in adobe reader or sumatra. The yap software is 
invoked to preview the pdf. I tried to add the adobe path, change the 
preview to AcroRD32 or Summatra. I even re-installed lyx. Nothing 
works so far. This is really bothering me since I need to adjust the 
look of the paper. With yap, I can't really see how the paper looks 
like now.


--
Yan Song

PhD
Department of Economics, McGill University

Cell phone: 514-5496070
Personal Website: yansong.org 
When trying to use Sumatra did you use the name SumatraPDF? And if 
you're using Windows, you may have to specify the path (under 
Tools>Preferences>Paths>PATH prefix), e.g.


C:\Program Files (x86)\SumatraPDF\

Andrew


---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus


Re: LyX -> word.doc via Libreoffice -> smashwords "paragraph marks"

2015-09-23 Thread Andrew Parsloe

On 24/09/2015 3:36 a.m., Joe wrote:
Of course I doubt this would work so good if I was writing something 
that needed tables, or other constructs that wouldn't make it through 
smashwords so called meat-grinder. But I'm writing fiction. So this 
will work for me, until I find a better way. If anyone knows of a 
better way to get the resulting word.doc, formatted to the exacting 
standards described in the smashwords style guide. And still look like 
the output LyX thought I meant when I composed with LyX. So that it 
could keep me from fat fingering extra spaces, and all the other 
formatting mistakes that would creep in to my work, if I tried to 
compose with a mere word processor. Then please give me a clue. Cause 
this repeatable kludge is a real PITA! Thank you! 


Have you considered exporting to rich text format and opening the 
resulting rtf document in LibreOffice? I'm on windows, but I've found 
the program latex2rtf does a pretty good job of handling even quite 
complicated LyX objects (like tables, simple equations, footnotes). For 
straightforward text (section headings, paragraphs, emphasised text 
etc.) it could save you a *lot* of effort. The main problem for me was 
setting the thing up. You need to ensure the rich text format is defined 
in Tools > Preferences > File Handling > File Formats and then set up a 
converter from latex to rtf. In my windows set up this is


c:/PROGRA~2/latex2rtf/latex2rt.exe -P c:progra~2/latex2rtf/cfg $$i

In linux, the paths will obviously be different. The critical part was 
the -P option which points latex2rtf to its cfg file.


Andrew


---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus



Re: LyX -> word.doc via Libreoffice -> smashwords "paragraph marks"

2015-09-23 Thread Andrew Parsloe



On 24/09/2015 3:08 p.m., Joe wrote:

It would appear that on Sep 24, Andrew Parsloe did say:


Have you considered exporting to rich text format and opening the resulting
rtf document in LibreOffice? I'm on windows, but I've found the program
latex2rtf does a pretty good job of handling even quite complicated LyX
objects (like tables, simple equations, footnotes). For straightforward text
(section headings, paragraphs, emphasised text etc.) it could save you a *lot*
of effort.

Actually no, I hadn't considered that. Probably because I didn't know how.
And if I needed tables, footnotes etc... I'd be all over that like white on
rice. Might try it anyway. Though I doubt it would save me as much effort
as you think. Because the smashwords meatgrinder is very picky about how
things are formatted. And leaving the tables and stuff out of it, almost all
formatting needs to be defined in paragraph styles. Any direct formatting,
aside from toggling italics, boldface, and underlining, that isn't done
with a paragraph style will cause errors.

The particular point about exporting to rtf is that it spares you all 
those one line paragraphs. A paragraph in LyX is a paragraph in rtf. It 
isn't exported to a sequence of one-line paragraphs. I should have 
emphasised that.


Andrew

---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus



Re: 2.0.7: view PDF no longer working?

2014-02-12 Thread Andrew Parsloe



On 13/02/2014 6:19 a.m., Scott Kostyshak wrote:

On Wed, Feb 12, 2014 at 12:15 PM, Daniel Renshaw pantech...@gmail.com wrote:

Thanks Scott,

I've installed SumatraPDF and, after changing the default viewer for PDFs in
Windows, it opens fine on view.

Task Manager shows that the filename is passed on the command line when
using SumatraPDF.

So, somehow, the behaviour of Lyx when pdfview is selected in the pdflatex
file format, and Adobe Reader is the default viewer in Windows, has changed
between 2.0.6 and 2.07, such that it no longer works in the latter.


Thanks for testing that out Daniel and for the feedback. We only have
a couple developers on Windows and they have a long list of things to
check out but maybe they will get to this.


I now think I'll be sticking with SumatraPDF even if Lyx fixes its
integration with Adobe Reader.


It's good you like it. Even if this issue is resolved, there are other
issues with LyX + Adobe Reader that SumatraPDF does not seem to have
so that will probably work out well.

Best,

Scott



I have LyX 2.0.7 working successfully on 64-bit Windows 7. Adobe Reader 
opens without problems when I use the default View button in LyX, but 
this is Adobe Reader 9.5.5. Under File Formats, for PDF (pdflatex) the 
three check boxes are set, and the other settings working down screen 
are: pdf2, pdf, F, None, pdfview. The Copier slot is empty and at the 
bottom under Default Output Format, PDF (pdflatex).


Andrew

---
This email is free from viruses and malware because avast! Antivirus protection 
is active.
http://www.avast.com



Re: 2.0.7: view PDF no longer working?

2014-02-12 Thread Andrew Parsloe



On 13/02/2014 9:43 a.m., Andrew Parsloe wrote:



On 13/02/2014 6:19 a.m., Scott Kostyshak wrote:

On Wed, Feb 12, 2014 at 12:15 PM, Daniel Renshaw
pantech...@gmail.com wrote:

Thanks Scott,

I've installed SumatraPDF and, after changing the default viewer for
PDFs in
Windows, it opens fine on view.

Task Manager shows that the filename is passed on the command line when
using SumatraPDF.

So, somehow, the behaviour of Lyx when pdfview is selected in the
pdflatex
file format, and Adobe Reader is the default viewer in Windows, has
changed
between 2.0.6 and 2.07, such that it no longer works in the latter.


Thanks for testing that out Daniel and for the feedback. We only have
a couple developers on Windows and they have a long list of things to
check out but maybe they will get to this.


I now think I'll be sticking with SumatraPDF even if Lyx fixes its
integration with Adobe Reader.


It's good you like it. Even if this issue is resolved, there are other
issues with LyX + Adobe Reader that SumatraPDF does not seem to have
so that will probably work out well.

Best,

Scott



I have LyX 2.0.7 working successfully on 64-bit Windows 7. Adobe Reader
opens without problems when I use the default View button in LyX, but
this is Adobe Reader 9.5.5. Under File Formats, for PDF (pdflatex) the
three check boxes are set, and the other settings working down screen
are: pdf2, pdf, F, None, pdfview. The Copier slot is empty and at the
bottom under Default Output Format, PDF (pdflatex).

Andrew



Correction: it's Adobe Reader 10.1.0 on the Windows 7 machine. Adobe 
Reader 9.5.5 works successfully on my older Vista machine.


Andrew

---
This email is free from viruses and malware because avast! Antivirus protection 
is active.
http://www.avast.com



Re: 2.0.7: view PDF no longer working?

2014-02-12 Thread Andrew Parsloe



On 13/02/2014 6:19 a.m., Scott Kostyshak wrote:

On Wed, Feb 12, 2014 at 12:15 PM, Daniel Renshaw pantech...@gmail.com wrote:

Thanks Scott,

I've installed SumatraPDF and, after changing the default viewer for PDFs in
Windows, it opens fine on view.

Task Manager shows that the filename is passed on the command line when
using SumatraPDF.

So, somehow, the behaviour of Lyx when pdfview is selected in the pdflatex
file format, and Adobe Reader is the default viewer in Windows, has changed
between 2.0.6 and 2.07, such that it no longer works in the latter.


Thanks for testing that out Daniel and for the feedback. We only have
a couple developers on Windows and they have a long list of things to
check out but maybe they will get to this.


I now think I'll be sticking with SumatraPDF even if Lyx fixes its
integration with Adobe Reader.


It's good you like it. Even if this issue is resolved, there are other
issues with LyX + Adobe Reader that SumatraPDF does not seem to have
so that will probably work out well.

Best,

Scott



I have LyX 2.0.7 working successfully on 64-bit Windows 7. Adobe Reader 
opens without problems when I use the default View button in LyX, but 
this is Adobe Reader 9.5.5. Under File Formats, for PDF (pdflatex) the 
three check boxes are set, and the other settings working down screen 
are: pdf2, pdf, F, None, pdfview. The Copier slot is empty and at the 
bottom under Default Output Format, PDF (pdflatex).


Andrew

---
This email is free from viruses and malware because avast! Antivirus protection 
is active.
http://www.avast.com



Re: 2.0.7: view PDF no longer working?

2014-02-12 Thread Andrew Parsloe



On 13/02/2014 9:43 a.m., Andrew Parsloe wrote:



On 13/02/2014 6:19 a.m., Scott Kostyshak wrote:

On Wed, Feb 12, 2014 at 12:15 PM, Daniel Renshaw
pantech...@gmail.com wrote:

Thanks Scott,

I've installed SumatraPDF and, after changing the default viewer for
PDFs in
Windows, it opens fine on view.

Task Manager shows that the filename is passed on the command line when
using SumatraPDF.

So, somehow, the behaviour of Lyx when pdfview is selected in the
pdflatex
file format, and Adobe Reader is the default viewer in Windows, has
changed
between 2.0.6 and 2.07, such that it no longer works in the latter.


Thanks for testing that out Daniel and for the feedback. We only have
a couple developers on Windows and they have a long list of things to
check out but maybe they will get to this.


I now think I'll be sticking with SumatraPDF even if Lyx fixes its
integration with Adobe Reader.


It's good you like it. Even if this issue is resolved, there are other
issues with LyX + Adobe Reader that SumatraPDF does not seem to have
so that will probably work out well.

Best,

Scott



I have LyX 2.0.7 working successfully on 64-bit Windows 7. Adobe Reader
opens without problems when I use the default View button in LyX, but
this is Adobe Reader 9.5.5. Under File Formats, for PDF (pdflatex) the
three check boxes are set, and the other settings working down screen
are: pdf2, pdf, F, None, pdfview. The Copier slot is empty and at the
bottom under Default Output Format, PDF (pdflatex).

Andrew



Correction: it's Adobe Reader 10.1.0 on the Windows 7 machine. Adobe 
Reader 9.5.5 works successfully on my older Vista machine.


Andrew

---
This email is free from viruses and malware because avast! Antivirus protection 
is active.
http://www.avast.com



Re: 2.0.7: view PDF no longer working?

2014-02-12 Thread Andrew Parsloe



On 13/02/2014 6:19 a.m., Scott Kostyshak wrote:

On Wed, Feb 12, 2014 at 12:15 PM, Daniel Renshaw  wrote:

Thanks Scott,

I've installed SumatraPDF and, after changing the default viewer for PDFs in
Windows, it opens fine on "view".

Task Manager shows that the filename is passed on the command line when
using SumatraPDF.

So, somehow, the behaviour of Lyx when "pdfview" is selected in the pdflatex
file format, and Adobe Reader is the default viewer in Windows, has changed
between 2.0.6 and 2.07, such that it no longer works in the latter.


Thanks for testing that out Daniel and for the feedback. We only have
a couple developers on Windows and they have a long list of things to
check out but maybe they will get to this.


I now think I'll be sticking with SumatraPDF even if Lyx fixes its
integration with Adobe Reader.


It's good you like it. Even if this issue is resolved, there are other
issues with LyX + Adobe Reader that SumatraPDF does not seem to have
so that will probably work out well.

Best,

Scott



I have LyX 2.0.7 working successfully on 64-bit Windows 7. Adobe Reader 
opens without problems when I use the default View button in LyX, but 
this is Adobe Reader 9.5.5. Under File Formats, for PDF (pdflatex) the 
three check boxes are set, and the other settings working down screen 
are: pdf2, pdf, F, None, pdfview. The Copier slot is empty and at the 
bottom under Default Output Format, PDF (pdflatex).


Andrew

---
This email is free from viruses and malware because avast! Antivirus protection 
is active.
http://www.avast.com



Re: 2.0.7: view PDF no longer working?

2014-02-12 Thread Andrew Parsloe



On 13/02/2014 9:43 a.m., Andrew Parsloe wrote:



On 13/02/2014 6:19 a.m., Scott Kostyshak wrote:

On Wed, Feb 12, 2014 at 12:15 PM, Daniel Renshaw
<pantech...@gmail.com> wrote:

Thanks Scott,

I've installed SumatraPDF and, after changing the default viewer for
PDFs in
Windows, it opens fine on "view".

Task Manager shows that the filename is passed on the command line when
using SumatraPDF.

So, somehow, the behaviour of Lyx when "pdfview" is selected in the
pdflatex
file format, and Adobe Reader is the default viewer in Windows, has
changed
between 2.0.6 and 2.07, such that it no longer works in the latter.


Thanks for testing that out Daniel and for the feedback. We only have
a couple developers on Windows and they have a long list of things to
check out but maybe they will get to this.


I now think I'll be sticking with SumatraPDF even if Lyx fixes its
integration with Adobe Reader.


It's good you like it. Even if this issue is resolved, there are other
issues with LyX + Adobe Reader that SumatraPDF does not seem to have
so that will probably work out well.

Best,

Scott



I have LyX 2.0.7 working successfully on 64-bit Windows 7. Adobe Reader
opens without problems when I use the default View button in LyX, but
this is Adobe Reader 9.5.5. Under File Formats, for PDF (pdflatex) the
three check boxes are set, and the other settings working down screen
are: pdf2, pdf, F, None, pdfview. The Copier slot is empty and at the
bottom under Default Output Format, PDF (pdflatex).

Andrew



Correction: it's Adobe Reader 10.1.0 on the Windows 7 machine. Adobe 
Reader 9.5.5 works successfully on my older Vista machine.


Andrew

---
This email is free from viruses and malware because avast! Antivirus protection 
is active.
http://www.avast.com



Re: plyx

2014-01-29 Thread Andrew Parsloe



On 29/01/2014 11:03 p.m., Wolfgang Engelmann wrote:

On Saturday 25 January 2014 22:52:50 Andrew Parsloe wrote:

Andrew recommended to useplyx for eg exchanging globally in a lyx
document the location of the figure paths (e.g. from something to ./)

I have tried to install the plyx/qlyx

and havethis problem:

I followed

Chapter 2 Putting the pieces in their places

1.Specifically: (a-e)

2.File formats (a)

in trying to do (b):

Similarly create a new file format qLyX, short name qlyx, extension lyx;
none of the other check boxes or slots need to be filled. Click Apply.

I was asked to reconfigure, which I did. However, I had lyx in the
left/right view with the instructions what to do on the left and the new
pLyX.lyx to the right. I probably made a mistake in not closing the left
side before reconfiguring. When I restarted lyx, I got at the left upper
menu line just below Datei (File ) and Bearbeitentwo wheels with a black
bar going through them.

This happens with each new start of lyx with this warning on the terminal

we@wolfgang:~$ Fontconfig warning:
/etc/fonts/conf.d/65-droid-sans-fonts.conf, line 103: Having multiple
values in test isn't supported and may not work as expected

Fontconfig warning: /etc/fonts/conf.d/65-droid-sans-fonts.conf, line
138: Having multiple values in test isn't supported and may not work
as expected

LyXComm: Pipe /home/we/.lyx/lyxpipe.in already exists.

If no other LyX program is active, please delete the pipe by hand and
try again.

However, there is no

Pipe /home/we/.lyx/lyxpipe

which I could delete.

Note that the Fontconfig warnings I had before and didn't bother about
them, because they do not seem to affect the working with LyX.

How do I get rid of this? Do I have to install lyx anew?

Andrew, perhaps a note about the reconfigure after the plyx creation
before the qlyx creation would be good and a warning, to close first the
second lyx file before reconfiguring, if this is indeed the reason for
the error.

Wolfgang



I'm sorry this has become messy, Wolfgang. I didn't anticipate left and 
right screen views being open while putting the pieces in their places, 
although it is clearly convenient to do so. However, I've just tried 
reconfiguring with left and right views open, and it proceeded without 
problems (on my Windows 7 machine).


The LyX pipe is nowhere involved in pLyX. Am I right in thinking (from 
other threads) that you have a LyX installation that you've compiled 
yourself? Perhaps you should remove all pLyX stuff and try reconfiguring 
after that. Then, if you wish, start again.


Andrew

---
This email is free from viruses and malware because avast! Antivirus protection 
is active.
http://www.avast.com



Re: plyx

2014-01-29 Thread Andrew Parsloe



On 29/01/2014 11:03 p.m., Wolfgang Engelmann wrote:

On Saturday 25 January 2014 22:52:50 Andrew Parsloe wrote:

Andrew recommended to useplyx for eg exchanging globally in a lyx
document the location of the figure paths (e.g. from something to ./)

I have tried to install the plyx/qlyx

and havethis problem:

I followed

Chapter 2 Putting the pieces in their places

1.Specifically: (a-e)

2.File formats (a)

in trying to do (b):

Similarly create a new file format qLyX, short name qlyx, extension lyx;
none of the other check boxes or slots need to be filled. Click Apply.

I was asked to reconfigure, which I did. However, I had lyx in the
left/right view with the instructions what to do on the left and the new
pLyX.lyx to the right. I probably made a mistake in not closing the left
side before reconfiguring. When I restarted lyx, I got at the left upper
menu line just below Datei (File ) and Bearbeitentwo wheels with a black
bar going through them.

This happens with each new start of lyx with this warning on the terminal

we@wolfgang:~$ Fontconfig warning:
/etc/fonts/conf.d/65-droid-sans-fonts.conf, line 103: Having multiple
values in test isn't supported and may not work as expected

Fontconfig warning: /etc/fonts/conf.d/65-droid-sans-fonts.conf, line
138: Having multiple values in test isn't supported and may not work
as expected

LyXComm: Pipe /home/we/.lyx/lyxpipe.in already exists.

If no other LyX program is active, please delete the pipe by hand and
try again.

However, there is no

Pipe /home/we/.lyx/lyxpipe

which I could delete.

Note that the Fontconfig warnings I had before and didn't bother about
them, because they do not seem to affect the working with LyX.

How do I get rid of this? Do I have to install lyx anew?

Andrew, perhaps a note about the reconfigure after the plyx creation
before the qlyx creation would be good and a warning, to close first the
second lyx file before reconfiguring, if this is indeed the reason for
the error.

Wolfgang



I'm sorry this has become messy, Wolfgang. I didn't anticipate left and 
right screen views being open while putting the pieces in their places, 
although it is clearly convenient to do so. However, I've just tried 
reconfiguring with left and right views open, and it proceeded without 
problems (on my Windows 7 machine).


The LyX pipe is nowhere involved in pLyX. Am I right in thinking (from 
other threads) that you have a LyX installation that you've compiled 
yourself? Perhaps you should remove all pLyX stuff and try reconfiguring 
after that. Then, if you wish, start again.


Andrew

---
This email is free from viruses and malware because avast! Antivirus protection 
is active.
http://www.avast.com



Re: plyx

2014-01-29 Thread Andrew Parsloe



On 29/01/2014 11:03 p.m., Wolfgang Engelmann wrote:

On Saturday 25 January 2014 22:52:50 Andrew Parsloe wrote:

Andrew recommended to useplyx for eg exchanging globally in a lyx
document the location of the figure paths (e.g. from something to ./)

I have tried to install the plyx/qlyx

and havethis problem:

I followed

Chapter 2 Putting the pieces in their places

1.Specifically: (a-e)

2.File formats (a)

in trying to do (b):

Similarly create a new file format qLyX, short name qlyx, extension lyx;
none of the other check boxes or slots need to be filled. Click Apply.

I was asked to reconfigure, which I did. However, I had lyx in the
left/right view with the instructions what to do on the left and the new
pLyX.lyx to the right. I probably made a mistake in not closing the left
side before reconfiguring. When I restarted lyx, I got at the left upper
menu line just below Datei (File ) and Bearbeitentwo wheels with a black
bar going through them.

This happens with each new start of lyx with this warning on the terminal

we@wolfgang:~$ Fontconfig warning:
"/etc/fonts/conf.d/65-droid-sans-fonts.conf", line 103: Having multiple
values in  isn't supported and may not work as expected

Fontconfig warning: "/etc/fonts/conf.d/65-droid-sans-fonts.conf", line
138: Having multiple values in  isn't supported and may not work
as expected

LyXComm: Pipe /home/we/.lyx/lyxpipe.in already exists.

If no other LyX program is active, please delete the pipe by hand and
try again.

However, there is no

Pipe /home/we/.lyx/lyxpipe

which I could delete.

Note that the Fontconfig warnings I had before and didn't bother about
them, because they do not seem to affect the working with LyX.

How do I get rid of this? Do I have to install lyx anew?

Andrew, perhaps a note about the reconfigure after the plyx creation
before the qlyx creation would be good and a warning, to close first the
second lyx file before reconfiguring, if this is indeed the reason for
the error.

Wolfgang



I'm sorry this has become messy, Wolfgang. I didn't anticipate left and 
right screen views being open while putting the pieces in their places, 
although it is clearly convenient to do so. However, I've just tried 
reconfiguring with left and right views open, and it proceeded without 
problems (on my Windows 7 machine).


The LyX pipe is nowhere involved in pLyX. Am I right in thinking (from 
other threads) that you have a LyX installation that you've compiled 
yourself? Perhaps you should remove all pLyX stuff and try reconfiguring 
after that. Then, if you wish, start again.


Andrew

---
This email is free from viruses and malware because avast! Antivirus protection 
is active.
http://www.avast.com



Re: graphics location

2014-01-25 Thread Andrew Parsloe



On 25/01/2014 7:13 a.m., Wolfgang Engelmann wrote:

Dear Lyx Users,

I have exported my lyx file as a lyx archive, which contains as a tar.gz
file the lyx file, the used bib file and the figures used. This is quite
handy, because only the used figures, bib are saved.

However, I have this problem:

The path to the figures should be ./Kalanchoe-closed.jpg

as an example and not e.g.:

\begin_inset Graphics

filename BluFloClockTar/AAAflowerclock20130909/Kalanchoe-closed.jpg

since I would like to move the lyx file to another folder or send it away.

There are many figures, therefore I would prefer NOT to select each
figure path anew.

What would you recommend?

Using the tex file and, in an editor, replace the path, to end up with
./figureFile? Or is there a way in Lyx? (Which would be handy)

Wolfgang



Hullo Wolfgang,

This is the kind of thing that can be done with the find--replace 
script of the pLyX scripting system (on the wiki under Examples/pLyX 
system) which allows you to work from within the LyX gui. In fact I was 
faced with a similar task a couple of weeks ago (and found a bug in the 
script which I've since corrected). The system takes a little setting up 
(two file formats and two converters to be defined, plus some files to 
be distributed around your personal LyX folders), and some practice to 
get a feel for how it works.


If you do go this way, then you would need to insert a .find--replace 
inset containing


-i -r

to specify a regular expression inset search, followed by two  .argument 
insets, the first (the find regular expression) containing


filename .+/([\w\d\-]+)\.jpg

and the second (the replace expression) containing

filename ./\1.jpg

Then click the View other formats button and select pLyX.

This assumes that all your graphics are .jpg format, and that the names 
of your images (like 'Kalanchoe-closed') are made up only from letters, 
digits, hyphens and underscores.


Andrew






---
This email is free from viruses and malware because avast! Antivirus protection 
is active.
http://www.avast.com



Re: graphics location

2014-01-25 Thread Andrew Parsloe



On 25/01/2014 7:13 a.m., Wolfgang Engelmann wrote:

Dear Lyx Users,

I have exported my lyx file as a lyx archive, which contains as a tar.gz
file the lyx file, the used bib file and the figures used. This is quite
handy, because only the used figures, bib are saved.

However, I have this problem:

The path to the figures should be ./Kalanchoe-closed.jpg

as an example and not e.g.:

\begin_inset Graphics

filename BluFloClockTar/AAAflowerclock20130909/Kalanchoe-closed.jpg

since I would like to move the lyx file to another folder or send it away.

There are many figures, therefore I would prefer NOT to select each
figure path anew.

What would you recommend?

Using the tex file and, in an editor, replace the path, to end up with
./figureFile? Or is there a way in Lyx? (Which would be handy)

Wolfgang



Hullo Wolfgang,

This is the kind of thing that can be done with the find--replace 
script of the pLyX scripting system (on the wiki under Examples/pLyX 
system) which allows you to work from within the LyX gui. In fact I was 
faced with a similar task a couple of weeks ago (and found a bug in the 
script which I've since corrected). The system takes a little setting up 
(two file formats and two converters to be defined, plus some files to 
be distributed around your personal LyX folders), and some practice to 
get a feel for how it works.


If you do go this way, then you would need to insert a .find--replace 
inset containing


-i -r

to specify a regular expression inset search, followed by two  .argument 
insets, the first (the find regular expression) containing


filename .+/([\w\d\-]+)\.jpg

and the second (the replace expression) containing

filename ./\1.jpg

Then click the View other formats button and select pLyX.

This assumes that all your graphics are .jpg format, and that the names 
of your images (like 'Kalanchoe-closed') are made up only from letters, 
digits, hyphens and underscores.


Andrew






---
This email is free from viruses and malware because avast! Antivirus protection 
is active.
http://www.avast.com



Re: graphics location

2014-01-25 Thread Andrew Parsloe



On 25/01/2014 7:13 a.m., Wolfgang Engelmann wrote:

Dear Lyx Users,

I have exported my lyx file as a lyx archive, which contains as a tar.gz
file the lyx file, the used bib file and the figures used. This is quite
handy, because only the used figures, bib are saved.

However, I have this problem:

The path to the figures should be ./Kalanchoe-closed.jpg

as an example and not e.g.:

\begin_inset Graphics

filename BluFloClockTar/AAAflowerclock20130909/Kalanchoe-closed.jpg

since I would like to move the lyx file to another folder or send it away.

There are many figures, therefore I would prefer NOT to select each
figure path anew.

What would you recommend?

Using the tex file and, in an editor, replace the path, to end up with
./figureFile? Or is there a way in Lyx? (Which would be handy)

Wolfgang



Hullo Wolfgang,

This is the kind of thing that can be done with the find-&-replace 
script of the pLyX scripting system (on the wiki under Examples/pLyX 
system) which allows you to work from within the LyX gui. In fact I was 
faced with a similar task a couple of weeks ago (and found a bug in the 
script which I've since corrected). The system takes a little setting up 
(two file formats and two converters to be defined, plus some files to 
be distributed around your personal LyX folders), and some practice to 
get a feel for how it works.


If you do go this way, then you would need to insert a .find-&-replace 
inset containing


-i -r

to specify a regular expression inset search, followed by two  .argument 
insets, the first (the find regular expression) containing


filename .+/([\w\d\-]+)\.jpg

and the second (the replace expression) containing

filename ./\1.jpg

Then click the View other formats button and select pLyX.

This assumes that all your graphics are .jpg format, and that the names 
of your images (like 'Kalanchoe-closed') are made up only from letters, 
digits, hyphens and underscores.


Andrew






---
This email is free from viruses and malware because avast! Antivirus protection 
is active.
http://www.avast.com



Re: Quick question regarding copy/paste and cut/paste

2014-01-15 Thread Andrew Parsloe



On 16/01/2014 8:25 a.m., A Choi wrote:

I am sending this again to include my OS and lyx version. as well as a
more detailed description of the problem.

Windows 7 and 2.0.6.

If I have a math expression, say, $acb$, and want to change the order of
them, I select b inside the math environment and do ctrl+x then move my
cursor to the space between a and c and then press ctrl+v. What happens
is b gets pasted outside the math environment, in plain text, in front
of $ac$. so instead of $abc$, i get b$ac$.



I've tried this for LyX 2.0.6 on both Windows Vista and Windows 7 and 
can't reproduce. Ctrl+V pastes the b between the a and c.


Andrew

---
This email is free from viruses and malware because avast! Antivirus protection 
is active.
http://www.avast.com



Re: Quick question regarding copy/paste and cut/paste

2014-01-15 Thread Andrew Parsloe



On 16/01/2014 8:25 a.m., A Choi wrote:

I am sending this again to include my OS and lyx version. as well as a
more detailed description of the problem.

Windows 7 and 2.0.6.

If I have a math expression, say, $acb$, and want to change the order of
them, I select b inside the math environment and do ctrl+x then move my
cursor to the space between a and c and then press ctrl+v. What happens
is b gets pasted outside the math environment, in plain text, in front
of $ac$. so instead of $abc$, i get b$ac$.



I've tried this for LyX 2.0.6 on both Windows Vista and Windows 7 and 
can't reproduce. Ctrl+V pastes the b between the a and c.


Andrew

---
This email is free from viruses and malware because avast! Antivirus protection 
is active.
http://www.avast.com



Re: Quick question regarding copy/paste and cut/paste

2014-01-15 Thread Andrew Parsloe



On 16/01/2014 8:25 a.m., A Choi wrote:

I am sending this again to include my OS and lyx version. as well as a
more detailed description of the problem.

Windows 7 and 2.0.6.

If I have a math expression, say, $acb$, and want to change the order of
them, I select b inside the math environment and do ctrl+x then move my
cursor to the space between a and c and then press ctrl+v. What happens
is b gets pasted outside the math environment, in plain text, in front
of $ac$. so instead of $abc$, i get b$ac$.



I've tried this for LyX 2.0.6 on both Windows Vista and Windows 7 and 
can't reproduce. Ctrl+V pastes the b between the a and c.


Andrew

---
This email is free from viruses and malware because avast! Antivirus protection 
is active.
http://www.avast.com



Re: reformatting all miniboxes

2014-01-04 Thread Andrew Parsloe

On 4/01/2014 9:57 p.m., Jürgen Spitzmüller wrote:

Premanshu Bhushan wrote:

Thanks Jürgen Spitzmüller. Your hack does work as all my boxes were 100%
textwidth. Can u also help to understand something like running a script
for  me in Lyx.


Not really. I guess a good starting point would be this:
http://wiki.lyx.org/Examples/PLyXSystem
Then you'd need to do some Python programming.

Regards,
Jürgen



For something like changing the width of text boxes, the find--replace 
script of the pLyX system will do the job -- no Python programming 
needed. The document explaining the use of the find--replace script has 
an example of changing the width of graphic insets.


Andrew

---
This email is free from viruses and malware because avast! Antivirus protection 
is active.
http://www.avast.com



Re: reformatting all miniboxes

2014-01-04 Thread Andrew Parsloe

On 4/01/2014 9:57 p.m., Jürgen Spitzmüller wrote:

Premanshu Bhushan wrote:

Thanks Jürgen Spitzmüller. Your hack does work as all my boxes were 100%
textwidth. Can u also help to understand something like running a script
for  me in Lyx.


Not really. I guess a good starting point would be this:
http://wiki.lyx.org/Examples/PLyXSystem
Then you'd need to do some Python programming.

Regards,
Jürgen



For something like changing the width of text boxes, the find--replace 
script of the pLyX system will do the job -- no Python programming 
needed. The document explaining the use of the find--replace script has 
an example of changing the width of graphic insets.


Andrew

---
This email is free from viruses and malware because avast! Antivirus protection 
is active.
http://www.avast.com



Re: reformatting all miniboxes

2014-01-04 Thread Andrew Parsloe

On 4/01/2014 9:57 p.m., Jürgen Spitzmüller wrote:

Premanshu Bhushan wrote:

Thanks Jürgen Spitzmüller. Your hack does work as all my boxes were 100%
textwidth. Can u also help to understand something like running a script
for  me in Lyx.


Not really. I guess a good starting point would be this:
http://wiki.lyx.org/Examples/PLyXSystem
Then you'd need to do some Python programming.

Regards,
Jürgen



For something like changing the width of text boxes, the find-&-replace 
script of the pLyX system will do the job -- no Python programming 
needed. The document explaining the use of the find-&-replace script has 
an example of changing the width of graphic insets.


Andrew

---
This email is free from viruses and malware because avast! Antivirus protection 
is active.
http://www.avast.com



Re: Index doesn't get output

2013-12-08 Thread Andrew Parsloe



On 8/12/2013 5:27 p.m., Richard Opheim wrote:

Why doesn't the index in the attached minimal ex. output?
Using LyX 2.0.6. on WIN8
--
Richard Opheim
Skype name: richard.opheim

Self-publishing Consultant
Editing---Layout---Musical Scores---Images---Ebooks
https://sites.google.com/site/opheimrichard/home
https://sites.google.com/site/opheimrichard/home

blog:
http://foliocirculaire.blogspot.com http://foliocirculaire.blogspot.com/


I think this is because you are using the memoir class. It has its own 
indexing commands -- see section 17.2 of the memoir manual, memman.pdf. 
However I haven't tried to prepare an index with memoir.


Andrew

---
This email is free from viruses and malware because avast! Antivirus protection 
is active.
http://www.avast.com



Re: Index doesn't get output

2013-12-08 Thread Andrew Parsloe



On 8/12/2013 5:27 p.m., Richard Opheim wrote:

Why doesn't the index in the attached minimal ex. output?
Using LyX 2.0.6. on WIN8
--
Richard Opheim
Skype name: richard.opheim

Self-publishing Consultant
Editing---Layout---Musical Scores---Images---Ebooks
https://sites.google.com/site/opheimrichard/home
https://sites.google.com/site/opheimrichard/home

blog:
http://foliocirculaire.blogspot.com http://foliocirculaire.blogspot.com/


I think this is because you are using the memoir class. It has its own 
indexing commands -- see section 17.2 of the memoir manual, memman.pdf. 
However I haven't tried to prepare an index with memoir.


Andrew

---
This email is free from viruses and malware because avast! Antivirus protection 
is active.
http://www.avast.com



Re: Index doesn't get output

2013-12-08 Thread Andrew Parsloe



On 8/12/2013 5:27 p.m., Richard Opheim wrote:

Why doesn't the index in the attached minimal ex. output?
Using LyX 2.0.6. on WIN8
--
Richard Opheim
Skype name: richard.opheim

Self-publishing Consultant
Editing---Layout---Musical Scores---Images---Ebooks
https://sites.google.com/site/opheimrichard/home


blog:
http://foliocirculaire.blogspot.com 


I think this is because you are using the memoir class. It has its own 
indexing commands -- see section 17.2 of the memoir manual, memman.pdf. 
However I haven't tried to prepare an index with memoir.


Andrew

---
This email is free from viruses and malware because avast! Antivirus protection 
is active.
http://www.avast.com



Semi-automatic indexing

2013-12-06 Thread Andrew Parsloe

Hullo Frederick,

Back at the start of October, you asked on the list about semi-automatic 
indexing. Richard Heck suggested this was the kind of thing that could 
be done with a script. It occurred to me that I might be able to 
elaborate the find--replace script of the pLyX system 
(http://wiki.lyx.org/Examples/PLyXSystem) to perform this function. I've 
now done so. The last section of the document describing the workings of 
the find--replace script describes how to use it for semi-automatic 
indexing.


As with all pLyX scripts, it is used from within the LyX GUI and is 
activated by clicking on toolbar buttons. You fill a custom inset with 
the terms you want to look for (and how you want them to appear in the 
index), and the script chews through the list item-by-item looking 
through the document for occurrences of those terms and attaching an 
index inset to each occurrence.


The main problem in setting up the pLyX system is defining two new file 
formats and converters. Otherwise it's just a case of distributing files 
to folders. The documentation accompanying the system, at the link 
given, I hope describes what to do clearly.


Andrew

---
This email is free from viruses and malware because avast! Antivirus protection 
is active.
http://www.avast.com



Semi-automatic indexing

2013-12-06 Thread Andrew Parsloe

Hullo Frederick,

Back at the start of October, you asked on the list about semi-automatic 
indexing. Richard Heck suggested this was the kind of thing that could 
be done with a script. It occurred to me that I might be able to 
elaborate the find--replace script of the pLyX system 
(http://wiki.lyx.org/Examples/PLyXSystem) to perform this function. I've 
now done so. The last section of the document describing the workings of 
the find--replace script describes how to use it for semi-automatic 
indexing.


As with all pLyX scripts, it is used from within the LyX GUI and is 
activated by clicking on toolbar buttons. You fill a custom inset with 
the terms you want to look for (and how you want them to appear in the 
index), and the script chews through the list item-by-item looking 
through the document for occurrences of those terms and attaching an 
index inset to each occurrence.


The main problem in setting up the pLyX system is defining two new file 
formats and converters. Otherwise it's just a case of distributing files 
to folders. The documentation accompanying the system, at the link 
given, I hope describes what to do clearly.


Andrew

---
This email is free from viruses and malware because avast! Antivirus protection 
is active.
http://www.avast.com



Semi-automatic indexing

2013-12-06 Thread Andrew Parsloe

Hullo Frederick,

Back at the start of October, you asked on the list about semi-automatic 
indexing. Richard Heck suggested this was the kind of thing that could 
be done with a script. It occurred to me that I might be able to 
elaborate the find-&-replace script of the pLyX system 
(http://wiki.lyx.org/Examples/PLyXSystem) to perform this function. I've 
now done so. The last section of the document describing the workings of 
the find-&-replace script describes how to use it for semi-automatic 
indexing.


As with all pLyX scripts, it is used from within the LyX GUI and is 
activated by clicking on toolbar buttons. You fill a custom inset with 
the terms you want to look for (and how you want them to appear in the 
index), and the script chews through the list item-by-item looking 
through the document for occurrences of those terms and attaching an 
index inset to each occurrence.


The main problem in setting up the pLyX system is defining two new file 
formats and converters. Otherwise it's just a case of distributing files 
to folders. The documentation accompanying the system, at the link 
given, I hope describes what to do clearly.


Andrew

---
This email is free from viruses and malware because avast! Antivirus protection 
is active.
http://www.avast.com



Re: creating a quiz /multiple choice questions with Lyx

2013-11-21 Thread Andrew Parsloe


On 21/11/2013 8:54 p.m., Andrew Parsloe wrote:

On 21/11/2013 10:03 a.m., Liviu Andronic wrote:

On Mon, Feb 4, 2013 at 10:17 PM, Andrew Parsloe
apars...@clear.net.nz wrote:

Riding my particular hobby horses, generating a randomized selection
looks
like a candidate for a python script after the fashion envisaged in
the pLyX
system (http://wiki.lyx.org/Examples/Examples).


Bad keybinding...

I was wondering, now that you're in midst of refactoring pLyX scripts,
whether you could easily come up with a Python script that could
achieve such randomized selection? Unfortunately my knowledge of
Python tends to zero, so I cannot quite hope to do this myself. I
don't actually need it now, but I'm curious if this can be done.

Please let me know,
Liviu



Since it is possible to sort a list, it should be straightforward. I
shall put it on my to-do list (which has a very random component to its
ordering).

Andrew

In fact, now done as part of the pLyX system using the list sorting 
script. If your questionnaire is in the form of a two-level list, 
questions at the top level, multi-choice answers at the sub-level, then, 
in the pLyX way, placing a .sort list custom inset just before the 
list with the sort specification 2r in it (2 for the sub-level, r 
for random) and clicking the pLyX buttons will randomise each sub-level 
list of potential answers. If the list had some sub-sub-level 
multi-choice answers, the sort spec. 2r3r would do the trick. I'll try 
to update the documentation today and get it to you, Liviu, for the 
Dropbox repository later today.


Andrew


Re: creating a quiz /multiple choice questions with Lyx

2013-11-21 Thread Andrew Parsloe


On 21/11/2013 8:54 p.m., Andrew Parsloe wrote:

On 21/11/2013 10:03 a.m., Liviu Andronic wrote:

On Mon, Feb 4, 2013 at 10:17 PM, Andrew Parsloe
apars...@clear.net.nz wrote:

Riding my particular hobby horses, generating a randomized selection
looks
like a candidate for a python script after the fashion envisaged in
the pLyX
system (http://wiki.lyx.org/Examples/Examples).


Bad keybinding...

I was wondering, now that you're in midst of refactoring pLyX scripts,
whether you could easily come up with a Python script that could
achieve such randomized selection? Unfortunately my knowledge of
Python tends to zero, so I cannot quite hope to do this myself. I
don't actually need it now, but I'm curious if this can be done.

Please let me know,
Liviu



Since it is possible to sort a list, it should be straightforward. I
shall put it on my to-do list (which has a very random component to its
ordering).

Andrew

In fact, now done as part of the pLyX system using the list sorting 
script. If your questionnaire is in the form of a two-level list, 
questions at the top level, multi-choice answers at the sub-level, then, 
in the pLyX way, placing a .sort list custom inset just before the 
list with the sort specification 2r in it (2 for the sub-level, r 
for random) and clicking the pLyX buttons will randomise each sub-level 
list of potential answers. If the list had some sub-sub-level 
multi-choice answers, the sort spec. 2r3r would do the trick. I'll try 
to update the documentation today and get it to you, Liviu, for the 
Dropbox repository later today.


Andrew


Re: creating a quiz /multiple choice questions with Lyx

2013-11-21 Thread Andrew Parsloe


On 21/11/2013 8:54 p.m., Andrew Parsloe wrote:

On 21/11/2013 10:03 a.m., Liviu Andronic wrote:

On Mon, Feb 4, 2013 at 10:17 PM, Andrew Parsloe
<apars...@clear.net.nz> wrote:

Riding my particular hobby horses, generating a randomized selection
looks
like a candidate for a python script after the fashion envisaged in
the pLyX
system (http://wiki.lyx.org/Examples/Examples).


Bad keybinding...

I was wondering, now that you're in midst of refactoring pLyX scripts,
whether you could easily come up with a Python script that could
achieve such randomized selection? Unfortunately my knowledge of
Python tends to zero, so I cannot quite hope to do this myself. I
don't actually need it now, but I'm curious if this can be done.

Please let me know,
Liviu



Since it is possible to sort a list, it should be straightforward. I
shall put it on my to-do list (which has a very random component to its
ordering).

Andrew

In fact, now done as part of the pLyX system using the list sorting 
script. If your questionnaire is in the form of a two-level list, 
questions at the top level, multi-choice answers at the sub-level, then, 
in the pLyX way, placing a ".sort list" custom inset just before the 
list with the sort specification "2r" in it ("2" for the sub-level, "r" 
for random) and clicking the pLyX buttons will randomise each sub-level 
list of potential answers. If the list had some sub-sub-level 
multi-choice answers, the sort spec. "2r3r" would do the trick. I'll try 
to update the documentation today and get it to you, Liviu, for the 
Dropbox repository later today.


Andrew


Re: creating a quiz /multiple choice questions with Lyx

2013-11-20 Thread Andrew Parsloe

On 21/11/2013 10:03 a.m., Liviu Andronic wrote:

On Mon, Feb 4, 2013 at 10:17 PM, Andrew Parsloe apars...@clear.net.nz wrote:

Riding my particular hobby horses, generating a randomized selection looks
like a candidate for a python script after the fashion envisaged in the pLyX
system (http://wiki.lyx.org/Examples/Examples).


Bad keybinding...

I was wondering, now that you're in midst of refactoring pLyX scripts,
whether you could easily come up with a Python script that could
achieve such randomized selection? Unfortunately my knowledge of
Python tends to zero, so I cannot quite hope to do this myself. I
don't actually need it now, but I'm curious if this can be done.

Please let me know,
Liviu



Since it is possible to sort a list, it should be straightforward. I 
shall put it on my to-do list (which has a very random component to its 
ordering).


Andrew


  1   2   3   4   5   >