Tiling Window Manager Interaction with LyX
Colleagues, A co-worker recently prompted me to experiment with a tiling window manager (TWM) within macOS. I'm still evaluating how it fits in with my workflow. However, I've found that it periodically doesn't treat LyX as consistently as the other applications I commonly use. That is, the TWM inconsistently fails to properly tile LyX's window. Does anyone else use a TWM (either with macOS or another OS)? If so, have you experienced any odd behavior or is this a "feature" of the particular TWM application I'm using? Thank you, Joel P.S. The TWM I'm using is chunkwm (https://koekeishiya.github.io/chunkwm/).
Re: How to use "abstract" package with LyX
On Aug 7, 2018, at 11:57 AM, Paul A. Rubin wrote: That said, it's a PITA to get the abstract package to work with LyX. Paul, I've not followed this thread being busy with paying work. :-) But, I am surprised you've had issues with it. All my documents (letters, articles, reports, and books) use the KOMA-script versions. I don't explicitly load an abstract package in the document's preamble, just type it in the appropriate place, highlight it, and select 'Abstract' from the environment menu. As long as I remember to not put the title on the page it comes out correctly. Were I to write a two-column article, I'd use the \multicols{} package and put the abstract above that. Just my 50-cents worth. Rich
Re: How to use "abstract" package with LyX
> On Aug 7, 2018, at 11:57 AM, Paul A. Rubin wrote: > > On 08/01/2018 07:27 PM, list_em...@icloud.com wrote: >> Has anyone successfully used the “abstract” package with LyX? >> >> http://mirror.las.iastate.edu/tex-archive/macros/latex/contrib/abstract/abstract.pdf >> >> I am trying to use it with "Article (Standard Class)” in two-column mode to >> get a single-column abstract to appear above the two-column body but am >> having trouble because the title page command “\maketitle” is called twice >> which is very bad. You can see more details of my experience here but for >> now I want to keep this message simple: >> >> https://www.mail-archive.com/lyx-devel@lists.lyx.org/msg205850.html >> >> Jerry >> > First, you're using the package wrong. In theory, you should just add the > \usepackage command in the preamble, give it any package options you want > related to the formatting of the abstract title etc., and then add the > abstract in the usual way (using the Abstract environment, no raw LaTeX > required). In particular, your typing the \maketitle command in ERT creates > the duplication you observed. > > That said, it's a PITA to get the abstract package to work with LyX. I'm > attaching two small examples. abstract2.lyx uses the abstract package. I did > not specify any options to it. The keys were (1) to define the title in the > preamble and not use the Title environment, which lets you get away with > specifying the \maketitle command manually, and (2) to stick a forced end of > line at the end of the abstract, to prevent it from butting up against the > first section. > > The other attached file, abstract.lyx, accomplishes the same thing without > using the abstract package. IMO it's easier, but may be less desirable if you > need to customize placement of the title "Abstract" or futz with fonts or > margins in just the abstract. > > Paul > > Thanks a lot, Paul. I was able eventually to get a reasonable result but then I wasn’t able to duplicate it on a new document. Both of your examples give good results for my purposes. (Curious about the differing vertical space after the section title, “The Text,” but that’s not concerning me right now.) I’m planning another writing project in a few days which will give me a chance to try your methods. Thanks again. Jerry
Re: How to use "abstract" package with LyX
On 08/01/2018 07:27 PM, list_em...@icloud.com wrote: Has anyone successfully used the “abstract” package with LyX? http://mirror.las.iastate.edu/tex-archive/macros/latex/contrib/abstract/abstract.pdf I am trying to use it with "Article (Standard Class)” in two-column mode to get a single-column abstract to appear above the two-column body but am having trouble because the title page command “\maketitle” is called twice which is very bad. You can see more details of my experience here but for now I want to keep this message simple: https://www.mail-archive.com/lyx-devel@lists.lyx.org/msg205850.html Jerry First, you're using the package wrong. In theory, you should just add the \usepackage command in the preamble, give it any package options you want related to the formatting of the abstract title etc., and then add the abstract in the usual way (using the Abstract environment, no raw LaTeX required). In particular, your typing the \maketitle command in ERT creates the duplication you observed. That said, it's a PITA to get the abstract package to work with LyX. I'm attaching two small examples. abstract2.lyx uses the abstract package. I did not specify any options to it. The keys were (1) to define the title in the preamble and not use the Title environment, which lets you get away with specifying the \maketitle command manually, and (2) to stick a forced end of line at the end of the abstract, to prevent it from butting up against the first section. The other attached file, abstract.lyx, accomplishes the same thing without using the abstract package. IMO it's easier, but may be less desirable if you need to customize placement of the title "Abstract" or futz with fonts or margins in just the abstract. Paul abstract.lyx Description: application/lyx abstract2.lyx Description: application/lyx
Re: AppleScript LyX
In the first instance, open ppp.lyx echo "LYXCMD:P2:buffer-view:pdf5" > "$(find ~ -name .lyxpipe.in)" will do the trick (though I haven't figured out yet how to select the buffer I just opened (for ppp.lyx). greetings, el On 06/08/2018 12:57, Dr Eberhard Lisse wrote: > Hi, > > I know next to no AppleScript and wonder if someone has a quick script > which will allow me to open a LyX document (absolute path), view the > file as pdf5 (PDF from LuaLaTeX) and keep the file in LyX's front window > open (for further editing and manual viewing) > > Can something like this be done with the LyX Server pipe (ie after > open(ing) the file)? > > greetings, el > >
Re: Trying to get lyx to find a .cls file
There are two locations that come to mind: ~/Library/texmf/... /usr/local/texlive/texmf-local/... I use the latter and had to edit (use the smaller mactex-basictex-20180417.pkg) /usr/local/texlive/2018basic/texmf.cnf to make TEXMFLOCAL look like TEXMFLOCAL = /usr/local/texlive/texmf-local so that texhash can find the local tree. The layout point is of course a good one, anyway. el On 07/08/2018 01:23, Paul A. Rubin wrote: > On 08/06/2018 04:58 PM, Melvyn Goldstein wrote: >> Hello, >> Can some one tell me where to put a .cls file so that lyx (2.3) can >> find it? >> I’m using Tex-live on a Mac (OS10.13.4). I have the Copernicus style >> files (.cls, in particular). But lyx can’t seem to find it. I’ve >> put them in the folder with the document and have also tried to put >> them in a couple of places in the texmf installation. I’ve used used >> ‘texhash’ in the terminal and ‘reconfigure’ in lyx. But lyx still >> complains and uses a fairly useless default. >> >> I’ve also, in lyx, gone into Document Settings and tried to point to >> the file, but lyx doesn’t seem to recognize the file as something it >> can read, so I haven’t been able to select it. >> >> Thanks very much! >> Melvyn Goldstein > In order to use a class file, LyX needs to have a layout file for the > class. The layout file is unique to LyX, telling it how to translate > class constructs into the GUI. I just looked in the directory of > layout files that come with LyX and did not see any names that > screamed "Copernicus" to me. Do you have a layout file (.layout > extension) for it? > > Paul > >