Search and Focus in LyX
I notice that, when I search for text in LyX, focus simply remains with the search/replace dialogue. Ideally, the user should be able to search for a substring, the cursor should be relocated to the next occurrence of that substring, and the user should be able to begin typing without first acting to give focus to the pane containing the text. When the user is making something global replacements or something that otherwise best calls for the replacement feature, this issue is of no significance. When the user is just making one change, this issue is of nearly no significance. But when the user is tweaking a large number different occurrences in different ways, having to change focus can become significant. One of the cases in which I have met with this issue is in editting documents to take better advantage of some of the recent enhancements of LyX.
Re: Creating a tree with math in LyX
On Sat, Mar 31, 2018 at 11:37 AM, Scott Kostyshak wrote: > > I think I will go for this workaround instead of the TiKZ path for now. > I would like to learn TiKZ, but not until I want to dedicate some time > to learning it correctly. Definitely use what works and feels most convenient. However, I'd caution you against waiting to play with TikZ until "learning it correctly". It has a truly immense feature set. I'm continually learning about new features (I found "spy" not too long ago, which was nearly mind blowing). Almost every time I use TikZ I learn a better or more efficient way to do something, that I wish I would have known previously, but in each case I ended up with a graphic I was happy with and file away that knowledge for next time. - Joel
Re: feature request: text search in LaTex Preamble
On 03/31/2018 04:32 PM, David Pesetsky wrote: > I often find myself hunting for something in the preamble and having to cut > and paste the contents of the "Document Settings/LaTex Preamble" window into > a text processing program to search for what I want. (And then I sometimes > tinker with it in the text processing program, forgetting that this does > nothing until I go back to LyX and make the change there.) It would be nice > to have a text search facility available within this LyX window, if possible. > Or am I missing something and the feature is there somewhere? > > (If there is another place to post feature requests let me know. The bug > tracker looks like it's only for bugs.) It also accepts enhancement requests. Just choose "enhancement" as the Type. Riki
feature request: text search in LaTex Preamble
I often find myself hunting for something in the preamble and having to cut and paste the contents of the "Document Settings/LaTex Preamble" window into a text processing program to search for what I want. (And then I sometimes tinker with it in the text processing program, forgetting that this does nothing until I go back to LyX and make the change there.) It would be nice to have a text search facility available within this LyX window, if possible. Or am I missing something and the feature is there somewhere? (If there is another place to post feature requests let me know. The bug tracker looks like it's only for bugs.) -David
Re: Feedback on dialog for Windows installer (round 2)
On Sat, Mar 31, 2018 at 07:00:34PM +, Emile Lunardon wrote: > Does updating Miktex require an Internet connection? or can it be done with > the Miktex distribution included in the LyX installation bundle? It requires an internet connection. Scott signature.asc Description: PGP signature
Re: Feedback on dialog for Windows installer (round 2)
Does updating Miktex require an Internet connection? or can it be done with the Miktex distribution included in the LyX installation bundle? 2018-03-31 19:38 GMT+02:00 Scott Kostyshak : > Dear all, > > I have two separate questions: > > 1. If no edits are made to the following dialog, do you believe the > dialog would be confusing to the *average* LyX user on Windows during > the LyX 2.3.0 installation process? > > 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 > > > 2. Do you have any suggested edits to improve the clarity of the above > message to the *average* LyX user on Windows? > > Note that this email follows a previous thread [1]. If you did not > follow that thread, no problem at all since it would be good to have a > fresh view. > > Thank you for your help! > > Scott > > > [1] https://www.mail-archive.com/search?l=mid&q=20180313221335. > 6asbmcrohug4rrzf%40steph > >
Re: Feedback on dialog for Windows installer (round 2)
On 03/31/2018 02:14 PM, Scott Kostyshak wrote: On Sat, Mar 31, 2018 at 06:00:36PM +, Paul A. Rubin wrote: It seems clear enough to me, but is "continue" the correct thing to do if you're confused? I haven't used Windows (or MiKTeX) in a while, but I gather there are potential problems with doing an update. If that's the case, the instructions seem to be saying "if you're confused, click continue and let us maybe break your MiKTeX installation". On the other hand, if the correct choice is to be conservative and click cancel, maybe we should throw a life preserver? "... you should choose 'Cancel', after which you might want to seek help on the LyX user mailing list" (or some such)? Good points and I don't disagree with your concerns. However, I think we might consider sacrificing some of the concerns like the ones you discuss above for the benefit of being as clear and as simple as possible. Can I at least conclude from your above comments that the proposed dialog would be better than automatically updating MiKTeX during the LyX installation without first asking the user? Scott Definitely. Also, while I generally don't favor making changes without "informed consent", I suspect that anyone who is confused by the message will also have no real grasp of the nuances of updating MiKTeX v. not updating MiKTeX. So maybe defaulting to continue is okay. Paul
Re: error with classicthesis.sty
On Sat, Mar 31, 2018 at 11:07:34AM +, Anthony wrote: > I have installed the classicthesis.sty using MiKTeX. > > I have also installed the layout file that accompanies the .sty file > > When I run my LyX code, using a template that also comes with the > classithesis package, the following error pops up: > > LaTeX error: file ../classicthesis.sty not found. > > The .sty file is located in MiKTeX 2.9\tex\latex\classicthesis This message was cross-posted here: https://tex.stackexchange.com/questions/424127/lyx-error-classicthesis-sty-not-found Anthony, please read the following: https://latex.org/home/latex-community/94-etiquette/454-crossposts Best, Scott signature.asc Description: PGP signature
Re: Feedback on dialog for Windows installer (round 2)
On Sat, Mar 31, 2018 at 06:00:36PM +, Paul A. Rubin wrote: > It seems clear enough to me, but is "continue" the correct thing to do if > you're confused? I haven't used Windows (or MiKTeX) in a while, but I gather > there are potential problems with doing an update. If that's the case, the > instructions seem to be saying "if you're confused, click continue and let > us maybe break your MiKTeX installation". > > On the other hand, if the correct choice is to be conservative and click > cancel, maybe we should throw a life preserver? "... you should choose > 'Cancel', after which you might want to seek help on the LyX user mailing > list" (or some such)? Good points and I don't disagree with your concerns. However, I think we might consider sacrificing some of the concerns like the ones you discuss above for the benefit of being as clear and as simple as possible. Can I at least conclude from your above comments that the proposed dialog would be better than automatically updating MiKTeX during the LyX installation without first asking the user? Scott signature.asc Description: PGP signature
Re: Feedback on dialog for Windows installer (round 2)
On 03/31/2018 01:38 PM, Scott Kostyshak wrote: Dear all, I have two separate questions: 1. If no edits are made to the following dialog, do you believe the dialog would be confusing to the *average* LyX user on Windows during the LyX 2.3.0 installation process? 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 2. Do you have any suggested edits to improve the clarity of the above message to the *average* LyX user on Windows? Note that this email follows a previous thread [1]. If you did not follow that thread, no problem at all since it would be good to have a fresh view. Thank you for your help! Scott [1] https://www.mail-archive.com/search?l=mid&q=20180313221335.6asbmcrohug4rrzf%40steph It seems clear enough to me, but is "continue" the correct thing to do if you're confused? I haven't used Windows (or MiKTeX) in a while, but I gather there are potential problems with doing an update. If that's the case, the instructions seem to be saying "if you're confused, click continue and let us maybe break your MiKTeX installation". On the other hand, if the correct choice is to be conservative and click cancel, maybe we should throw a life preserver? "... you should choose 'Cancel', after which you might want to seek help on the LyX user mailing list" (or some such)? Paul
Re: error with classicthesis.sty
On 03/31/2018 12:30 PM, Richard Kimberly Heck wrote: On 03/31/2018 07:07 AM, Anthony wrote: I have installed the classicthesis.sty using MiKTeX. I have also installed the layout file that accompanies the .sty file When I run my LyX code, using a template that also comes with the classithesis package, the following error pops up: LaTeX error: file ../classicthesis.sty not found. The .sty file is located in MiKTeX 2.9\tex\latex\classicthesis How did you install it? In Linux, if I install such a file manually, then I have to run a program called 'texhash' to regenerate the TeX database that is used to find such files. Otherwise, TeX does not know I've installed it. It may be that you have to do something similar in MikTeX. Riki If the package is installed via the MiKTeX package manager, texhash is run automagically. The error message is curious (to me) in that indicates a relative path (`../classicthesis.sty'). Was this the result of opening the classicthesis-book.lyx example file? That file contains the following preamble gem: \usepackage[linedheaders=true, parts=true]{../classicthesis}% ,manychapters The zip archive of the classic thesis package does contain a copy of classicthesis.sty, in the parent folder of the examples folder, but when LyX is compiling it in a temp directory I'm pretty sure the path will be misinterpreted. Getting rid of "../" in the preamble should fix it, if I'm right. Paul
Feedback on dialog for Windows installer (round 2)
Dear all, I have two separate questions: 1. If no edits are made to the following dialog, do you believe the dialog would be confusing to the *average* LyX user on Windows during the LyX 2.3.0 installation process? 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 2. Do you have any suggested edits to improve the clarity of the above message to the *average* LyX user on Windows? Note that this email follows a previous thread [1]. If you did not follow that thread, no problem at all since it would be good to have a fresh view. Thank you for your help! Scott [1] https://www.mail-archive.com/search?l=mid&q=20180313221335.6asbmcrohug4rrzf%40steph signature.asc Description: PGP signature
Re: Creating a tree with math in LyX
On Sat, Mar 31, 2018 at 04:30:43PM +, racoon wrote: > In the preamble: > An example diagram (I added an instant preview around it): Thanks, That example looks nice. This helped me realize that the reason I need the \protect is only because of the equals sign, not the math. Yours uses math but because you don't use an equals sign, there is no error. This helped me realize that I can use a workaround of $\overset{}{=}$, for which I don't even need ERT. I think I will go for this workaround instead of the TiKZ path for now. I would like to learn TiKZ, but not until I want to dedicate some time to learning it correctly. Attached is my previous example changed to use the workaround mentioned above. Thanks to all for your help! Scott tree_math.22.lyx Description: application/lyx signature.asc Description: PGP signature
Re: error with classicthesis.sty
On 03/31/2018 07:07 AM, Anthony wrote: > > I have installed the classicthesis.sty using MiKTeX. > > > > I have also installed the layout file that accompanies the .sty file > > > > When I run my LyX code, using a template that also comes with the > classithesis package, the following error pops up: > > > > LaTeX error: file ../classicthesis.sty not found. > > > > The .sty file is located in MiKTeX 2.9\tex\latex\classicthesis > How did you install it? In Linux, if I install such a file manually, then I have to run a program called 'texhash' to regenerate the TeX database that is used to find such files. Otherwise, TeX does not know I've installed it. It may be that you have to do something similar in MikTeX. Riki
Re: Creating a tree with math in LyX
On 31.03.2018 00:35, Scott Kostyshak wrote: I would like to make a simple tree that uses math. The current way I do it is to use the linguistics module, which gives access to the forest package. Then I go to Insert > custom insets > Structure tree. I then wrap the math I want to write in \protect. Attached is an example of what I'm currently doing. It works, but I don't like writing out \protect, and I have the feeling I'm asking the forest package to do something it was not meant to do (include math). Does someone recommend a different way? I was in need of a decision tree diagram and found it rather hard to get a satisfactory result. Maybe something of this is helpful to you. In the preamble: \forestset{ declare toks={elo}{}, my label/.style={ edge label={node[midway,above,text width=1.7cm,align=left]{#1}} }, decision tree/.style={ for tree={ grow=east, minimum size=2pt, inner sep=2pt, parent anchor=east, child anchor=west, l sep+=20mm, s sep+=3mm, edge path'={(!u.parent anchor) -- ([xshift=-18mm].child anchor)\forestove{elo} -- (.child anchor)}, } } } An example diagram (I added an instant preview around it): {\small \begin{forest} decision tree [,label=$n_0$,draw [,label=$n_3$,draw ,my label={$s_5,s_6$} [$o_6$, my label=$s_6(n_3)$] [$o_5$, my label=$s_5(n_3)$] ] [,label=$n_2$,draw, my label={$s_3,s_4$} [$o_4$, my label=$s_4(n_2)$] [$o_3$, my label=$s_3(n_2)$] ] [,label=$n_1$,draw, my label={$s_1,s_2$} [$o_2$, my label=$s_2(n_1)$] [$o_1$, my label=$s_1(n_1)$] ] ] \end{forest}}
Re: LyX--Knitr warnings.
On 03/30/2018 06:02 PM, Scott Kostyshak wrote: > On Fri, Mar 30, 2018 at 09:00:34PM +, John Kane wrote: >> Ah, not a bug, a feature. I guess I will learn to live with it. >> Thanks very much. It's good to know I don't have a potentially serious >> problem in my configuration. > You do not have to live with it (instructions below), but think hard > before you remove it. Have you ever downloaded and compiled a .lyx file > from the internet from a place you are not sure you could trust? It > would be extremely easy to make a .lyx file that would upload/delete all > of your files (because in R this is easy to write). And for that to > happen, all you would have to do is open the LyX file and compile it. And, just for anyone else reading this thread: This is precisely why this new warning exists. Not just for R, but for anything that poses this kind of threat. It's our attempt to make LyX a bit more secure. Riki
Re: Creating a tree with math in LyX
On Sat, 31 Mar 2018, Joel Kulesza wrote: Plenty of people do. Joel, I was referring, semi-seriously, to LyX users. One interesting trait I've identified with PSTricks users: they love it! Almost to a fault. Nearly every time I Google for how to do something with TikZ, I always see a PSTricks user has provided an answer on how to do it their way even though the question relates specifically to TikZ. That's common. I used to ask for help with an awk script and had responses using perl, lua, haskell, and other non-awk responses. TikZ can do this too. Both tools have comparable capabilities. I assumed this to be the case. Regards, Rich
Re: Creating a tree with math in LyX
On Sat, Mar 31, 2018 at 6:40 AM, Rich Shepard wrote: > On 03/30/2018 06:35 PM, Scott Kostyshak wrote: > > Does someone recommend a different way? >> > > Just out of curiosity, does anyone but me use PSTricks for creating > vector > graphics? > Plenty of people do. One interesting trait I've identified with PSTricks users: they love it! Almost to a fault. Nearly every time I Google for how to do something with TikZ, I always see a PSTricks user has provided an answer on how to do it their way even though the question relates specifically to TikZ. > Several years ago I created a scannable form with PSTricks and was able > to > adjust each component with very fine (sub-millimeter) resolution so the > filled boxes were correctly seen by the scanner. > TikZ can do this too. Both tools have comparable capabilities. > It does involve writing code but I've yet to find a situation where > PSTricks didn't produce precision output fully compativle with LaTeX/LyX. > These are two different technologies (PSTricks/TikZ vs LyX/LaTeX, where LaTeX is taken *very* loosely) intended for two different purposes. Besides, LaTeX involves writing code, so working with TikZ, PSTricks, etc. is a natural extension. - Joel
Re: Creating a tree with math in LyX
On 03/30/2018 06:35 PM, Scott Kostyshak wrote: Does someone recommend a different way? Just out of curiosity, does anyone but me use PSTricks for creating vector graphics? Several years ago I created a scannable form with PSTricks and was able to adjust each component with very fine (sub-millimeter) resolution so the filled boxes were correctly seen by the scanner. It does involve writing code but I've yet to find a situation where PSTricks didn't produce precision output fully compativle with LaTeX/LyX. Just my $0.02's worth. With open source we have a plethora of options, sometimes too many. :-) Carpe weekend, Rich
error with classicthesis.sty
I have installed the classicthesis.sty using MiKTeX. I have also installed the layout file that accompanies the .sty file When I run my LyX code, using a template that also comes with the classithesis package, the following error pops up: LaTeX error: file ../classicthesis.sty not found. The .sty file is located in MiKTeX 2.9\tex\latex\classicthesis Sent from Mail for Windows 10 This is pdfTeX, Version 3.14159265-2.6-1.40.18 (MiKTeX 2.9.6600) (preloaded format=latex 2018.3.30) 31 MAR 2018 22:03 entering extended mode **./SRP-Report2018.tex (SRP-Report2018.tex LaTeX2e <2017-04-15> Babel <3.18> and hyphenation patterns for 72 language(s) loaded. ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\koma-script\scrartcl.cls" Document Class: scrartcl 2017/09/07 v3.24 KOMA-Script document class (article) ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\koma-script\scrkbase.sty" Package: scrkbase 2017/09/07 v3.24 KOMA-Script package (KOMA-Script-dependent b asics and keyval usage) ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\koma-script\scrbase.sty" Package: scrbase 2017/09/07 v3.24 KOMA-Script package (KOMA-Script-independent basics and keyval usage) ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\graphics\keyval.sty" Package: keyval 2014/10/28 v1.15 key=value parser (DPC) \KV@toks@=\toks14 ) ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\koma-script\scrlfile.sty" Package: scrlfile 2017/09/07 v3.24 KOMA-Script package (loading files) ))) ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\koma-script\tocbasic.sty" Package: tocbasic 2017/09/07 v3.24 KOMA-Script package (handling toc-files) \scr@dte@tocline@numberwidth=\skip41 \scr@dte@tocline@numbox=\box26 ) Package tocbasic Info: omitting babel extension for `toc' (tocbasic) because of feature `nobabel' available (tocbasic) for `toc' on input line 133. Package tocbasic Info: omitting babel extension for `lof' (tocbasic) because of feature `nobabel' available (tocbasic) for `lof' on input line 135. Package tocbasic Info: omitting babel extension for `lot' (tocbasic) because of feature `nobabel' available (tocbasic) for `lot' on input line 136. Package scrartcl Info: You've used standard option `10pt'. (scrartcl) This is correct! (scrartcl) Internally I'm using `fontsize=10pt'. (scrartcl) If you'd like to set the option with \KOMAoptions, (scrartcl) you'd have to use `fontsize=10pt' there (scrartcl) instead of `10pt', too. Class scrartcl Info: File `scrsize10pt.clo' used to setup font sizes on input l ine 2080. ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\koma-script\scrsize10pt.clo" File: scrsize10pt.clo 2017/09/07 v3.24 KOMA-Script font size class option (10pt ) ) ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\koma-script\typearea.sty" Package: typearea 2017/09/07 v3.24 KOMA-Script package (type area) \ta@bcor=\skip42 \ta@div=\count79 \ta@hblk=\skip43 \ta@vblk=\skip44 \ta@temp=\skip45 \footheight=\skip46 Package typearea Info: These are the values describing the layout: (typearea) DIV = 8 (typearea) BCOR = 0.0pt (typearea) \paperwidth = 597.50793pt (typearea) \textwidth = 373.44246pt (typearea) DIV departure = -4% (typearea) \evensidemargin = 39.76274pt (typearea) \oddsidemargin = 39.76274pt (typearea) \paperheight = 845.04694pt (typearea) \textheight = 538.0pt (typearea) \topmargin = 0.36087pt (typearea) \headheight = 15.0pt (typearea) \headsep= 18.0pt (typearea) \topskip= 10.0pt (typearea) \footskip = 42.0pt (typearea) \baselineskip = 12.0pt (typearea) on input line 1686. ) \c@part=\count80 \c@section=\count81 \c@subsection=\count82 \c@subsubsection=\count83 \c@paragraph=\count84 \c@subparagraph=\count85 \scr@dte@part@maxnumwidth=\skip47 \scr@dte@section@maxnumwidth=\skip48 \scr@dte@subsection@maxnumwidth=\skip49 \scr@dte@subsubsection@maxnumwidth=\skip50 \scr@dte@paragraph@maxnumwidth=\skip51 \scr@dte@subparagraph@maxnumwidth=\skip52 LaTeX Info: Redefining \textsubscript on input line 4161. \abovecaptionskip=\skip53 \belowcaptionskip=\skip54 \c@pti@nb@sid@b@x=\box27 \c@figure=\count86 \c@table=\count87 Class scrartcl Info: Redefining `\numberline' on input line 5319. \bibindent=\dimen102 ) ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\base\fontenc.sty" Package: fontenc 2017/04/05 v2.0i Standard LaTeX package ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\base\t1enc.def" File: t1enc.def 2017/04/05 v2.0i Standard LaTeX file LaTeX Font Info:Redeclaring font encoding T1 on input line 48. )) ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\base\inputenc.sty" Package: inputenc 2015/03/17 v1.2c Input encoding file \inpenc@prehook=\toks15 \inpenc@posthook=\toks16 ("C:\Program Files (x86)\Mi