Re: Import docx to lyx

2023-06-02 Thread Benedict Holland
I've tried it. If it works for you, I think that's great. It generated
really bad formatting for me in my use cases, which is why I forgot about
it.

Thanks,
Ben

On Fri, Jun 2, 2023, 8:51 AM Rich Shepard  wrote:

> On Fri, 2 Jun 2023, Dr Eberhard W Lisse wrote:
>
> > Have you tried Libre Office and the Writer2Latex plug in?
>
> el,
>
> Thank you. I didn't know about that plug-in, which will be useful for me,
> too.
>
> Best regards,
>
> Rich
> --
> lyx-users mailing list
> lyx-users@lists.lyx.org
> http://lists.lyx.org/mailman/listinfo/lyx-users
>
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Import docx to lyx

2023-06-01 Thread Benedict Holland
>From experience, no. It is really not hard to format a docx to latex though.

Really, you are only thinking about lines and some special formatting.
Tables, images, headers, footers, and more make it very complicated. The
formats are diametrically opposite. Docx keeps information on every glif on
the page. Latex keeps markup and text separately with packages to fill in
blanks like biblatex and tables.

If you really need to, I would just do it manually. It's not too much work.
I've had to do it a few times on even large documents.

Thanks
Ben

On Thu, Jun 1, 2023, 6:21 PM Matthias Schmidt  wrote:

> Hello,
>
>
>
> I want to convert a Word docx-document into a Lyx document.
>
> I have tried several online converters that convert docx to tex. When I
> import these tex files into Lyx, the result is reasonably okay, but all
> these online converters cannot recognise blank lines.
>
> Is there a way to transfer a docx document with all formatting, spaces an
> blanc lines to Lyx?
>
>
>
> *-- *Mit freundlichen Grüßen
>
> *Matthias Schmidt *mailto:g...@schmidtfamilie.de 
> 
> --
> lyx-users mailing list
> lyx-users@lists.lyx.org
> http://lists.lyx.org/mailman/listinfo/lyx-users
>
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: I think we need a better name than "MWE"

2021-12-14 Thread Benedict Holland via lyx-users
It's working to demonstrate the problem. I don't see a significant problem
with it.

Thanks,
Ben

On Tue, Dec 14, 2021, 3:32 PM Jean-Marc Lasgouttes via lyx-users <
lyx-users@lists.lyx.org> wrote:

> Le 14/12/2021 à 21:05, Steve Litt via lyx-users a écrit :
> > Hi all,
> >
> > Here on the LyX list we use the word MWE to mean the simplest example
> > that still exhibits the symptom. But MWE stands for Minimum *Working*
> > Example, and by definition, the file that exhibits the symptom does not
> > "work". Also, I think I've seen MWE used on various LaTeX venues to
> > mean the smallest file that works, for a specific feature you want to
> > incorporate.
>
> In my view the problem is the acronym itself. I see it used directly and
> it is unlikely that a poor lost LyX user will know what it means. I find
> this jargon intimidating.
>
> JMarc
> --
> lyx-users mailing list
> lyx-users@lists.lyx.org
> http://lists.lyx.org/mailman/listinfo/lyx-users
>
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: understanding gdb

2019-08-13 Thread Benedict Holland
I would assume that configuring with debug would set the O0 flag and that
one of the main reasons to do so would be to step through code. Otherwise,
why use gdb? Application logs can get you a general sense of what is going
on without such a fine level of detail but again, if you are not stepping
through code, I dont know what the point of using a code debugger would
be.

Thanks,
~Ben

On Tue, Aug 13, 2019, 8:45 AM Kornel Benko  wrote:

> Am Dienstag, 13. August 2019, 13:20:52 CEST schrieb Pavel Sanda:
> > On Mon, Aug 12, 2019 at 06:10:19PM -0400, Benedict Holland wrote:
> > > You probably need to compile lyx though. I assume that Lyx uses the O2
> flag
> > > for production builds so while error messages and logs are a huge help
> > > (minimum working example is the best), unless you can compile with the
> O0
> > > flag for gcc, gdb will just return a mess.
> >
> > For reporting backtrace ('bt' command in gdb) to give us clue where the
> crash
> > occurred the most important is to compile lyx with debug info included
> > (./configure --enable-debug). Otherwise you loose info about line
> numbers.
>
> Even slightly better is to use the command
> bt full
> this way also the values of some parameters are visible.
>
> > Unless you want to actively step through the code and watch variables
> > 02 vs O0 is less important...
> >
> > Pavel
>
> Kornel
>
>


Re: understanding gdb

2019-08-12 Thread Benedict Holland
You probably need to compile lyx though. I assume that Lyx uses the O2 flag
for production builds so while error messages and logs are a huge help
(minimum working example is the best), unless you can compile with the O0
flag for gcc, gdb will just return a mess.

The good news is that you mostly dont need to worry about gdb. The bad news
is that you need to learn a gui for gdb (there are many and eclipse works
really well but there is a dedicated ide called something like IntelliCode
or something and I really loved that one). Basically, gdb is for stepping
through code. I would not recommend it for most users but it teach you a
lot about programming if that is something that interests you.

Thanks,
~Ben

On Mon, Aug 12, 2019, 2:38 PM Joel Kulesza  wrote:

> On Mon, Aug 12, 2019 at 9:27 AM Helge Hafting 
> wrote:
>
>>
>> Den 12.08.2019 08:42, skrev Wolfgang Engelmann:
>> > It was recommended to use gdb for tracking errors in LyX. I don't
>> > understand, how to get infos from it. The --help mentions data (for
>> > examining), stack (for examining stacks), and tracepoints (without
>> > stopping the texting). What would I use, and how, if I want to get
>> > infos out of the command?
>>
>> gdb is a debugger, and is useful mostly for the programmers that fix
>> problems in LyX. If you are not a programmer, then you may still be able
>> to use gdb to provide some useful information for the programmer that is
>> trying to solve your particular problem. Usually, the programmer trying
>> to figure out your problem can help you with the use of gdb in that
>> specific case.
>>
>>
>> A common case is to use gdb to find the position of an unexpected
>> program crash in the source code. (LyX is not supposed to crash at all
>> under normal use.)
>>
>> In this case, instead of issuing the command "lyx myfile.lyx", you do
>> this:
>>
>> gdb lyx
>>
>> [gdb prints some lines of output in your terminal]
>>
>> (gdb) run myfile.lyx
>>
>> [gdb prints more lines in the terminal, and a lyx window appear.]
>>
>> Do whatever you need to do to get the unwanted program crash
>>
>> [gdb prints some more info, then you issue the "bt" command to get a
>> backtrace]
>>
>> (gdb) bt
>>
>> [gdb prints the call chain up to the crashing function. This information
>> is very useful for a developer trying to figure out the problem.]
>>
>>
>> After this, copy all the text gdp printed into a mail message to the
>> developer helping you - or send it to this list. Also write exactly what
>> you did to get the crash. (Menu choices, typing, ...)
>>
>
> Helge,
>
> This is a nice summary.  Is it something to add to the LyX wiki?
>
> Thanks,
> Joel
>


Re: bibliography-question

2019-05-29 Thread Benedict Holland
I want to reiterate the ERT of \nocite{*} and you can probably put it in
your preamble if you want it for all parts in your document. This is your
answer:

https://tex.stackexchange.com/questions/17653/how-to-list-all-bibliography-entries-without-citing


Then you just have to create a references/bibliography section at the end
of each part.

This doesn't need JabRef. All JabRef does is create and manage your .bib
file. Biblatex will read your .bib file and create your references. Lyx
kicks off the biblatex command. BTW, I would not use bibtex to do it as
biblatex has a lot more options and features than bibtex does.

thanks,
~Ben

On Tue, May 28, 2019 at 4:34 PM Paul A. Rubin  wrote:

> On 5/28/19 9:57 AM, M.B. Schiekel wrote:
>
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> Am 27.05.19 um 23:15 schrieb Paul A. Rubin:
>
> ... Now I would like to have a biography at the end of each part
> - but each time the complete document biography, and not the
> part dependent biography. Might be this is trivial, but I can't
> see it. Any hint is wellcome. Thank you very much, bernhard
>
> ...
>
> Dear Paul,
>
> thank you for your answer, and well, you are right :-)
>
> I assume here that "biography" --> "bibliography".
>
> The next paragraph of your answer highlights my problem:
>
> /If/ every entry in the .bib file is cited somewhere (so that you
> want the full contents of the .bib file in each part), you might
> try the following: ...
>
> My .bib file is a bib-database of all my different papers, books, 
> So \btPrintAll seems not to be a very good idea :-)
>
> Vaguely I remember, that many years ago Herbert Voss, our LaTeX-guru,
> suggested exporting the document-bibliography at the end and in a
> second run importing it after after part 1 and part 2. How to manage thi
> s?
>
> Might be a workaround for my wishes would be a part-based bibliography
> after each part /plus/ a document-bibliography at the end of part 3.
> Is this possible?
>
> Any suggestions? Again thank you very much!
> bernhard
>
>
> You might have a look at
> https://tex.stackexchange.com/questions/41821/creating-bib-file-containing-only-the-cited-references-of-a-bigger-bib-file,
> particularly if you use (or are willing to use JabRef). The approach would
> be along the following lines:
>
>1. Do a sectioned bibliography without using my hack. This will
>generate a file with only a partial bibliography in each part (which is
>fine for now).
>2. Use the .aux file created by that to extract all entries cited
>anywhere in your paper (and only those entries) to a new .bib file,
>applying one of the methods in the StackExchange thread.
>3. Switch to the new .bib file in all sections of your paper, then add
>my hack in the preamble.
>
> Paul
>
>
>


Re: Customizing biblatex beyond Citation Style - Options field

2018-11-08 Thread Benedict Holland
If you don't include biblatex in the UI (remove any bibliography settings
in Lyx), it shouldn't load anything. Of course, then it is on you to
include biblatex with all options and customizations you would like.

Does that work?

Thanks,
~Ben

On Thu, Nov 8, 2018 at 11:13 AM Bert Lloyd  wrote:

> Dear LyX Users,
>
> I am using biblatex in LyX 2.3. I have added several options through
> the standard approach (Document Settings - Bibliography - Citation
> Style - Options; for example: hyperref=true), and this works fine.
>
> However, there are some further tweaks I would like to make that as
> far as I know cannot be done this way. For example, in plain LaTex, I
> would add
>
> \AtEveryBibitem{%
>   \clearlist{language}
> }
>
> after \usepackage[...]{biblatex}
>
> I attempted to implement this via Document Settings - Preamble.
> However, the problem I am having is that it appears that, by default,
> LyX places
> \usepackage[...]{biblatex}
> \addbibresource{are-495.bib}
> at the very end of the latex preamble.
>
> As a result, options I add via Document Settings - Preamble appear
> before \usepackage[...]{biblatex}, leading to an error message:
>
> Undefined control sequence
> \AtEveryBibitem
> {%
> The control sequence at the end of the top line...
>
> I tried including the \AtEveryBibitem{%... material in the body of the
> document using ERT, but this also lead to an error:
> ! LaTeX Error: Can be used only in preamble.
>
> So, is there a way I can
> A) Control where LyX puts \usepackage[...]{biblatex} in the latex preamble?
> B) Add material to a specific part of the latex preamble (i.e., the
> end, or at least after \usepackage[...]{biblatex})?
> C) Pass options to biblatex a different way?
> D) Other?
>
> Many thanks,
>
> BL
>


Re: Most efficient way to import wide, long table

2018-10-30 Thread Benedict Holland
For automation, I include a tex file within Lyx. I then create all of my
latex tables using python or whatever. It produces valid latex. This is
very hard to do without a heavy level of conformity. For example, I can
write a quick script that will take 95 rows of 4 column data quite quickly.
I have a very hard time figuring out how to make a latex table with 95 rows
of a variable number of columns. Even better, multiple tables with multiple
numbers of columns. Eventually, you would have to give it the number of
columns to produce.

Once you have python producing your latex table, you can simply rerun your
Lyx and it will include the documents. If you have multiple tables, include
a master tex table file in Lyx and update it with the python generated
tables. BTW, I did this for my dissertation with remarkable success. This
is a very difficult task. I would just import into Excel, break into
columns on "|" and copy it into Lyx.

Thanks,
~Ben

On Tue, Oct 30, 2018 at 6:02 PM Baris Erkus  wrote:

> On 10/31/2018 12:48 AM, Rich Shepard wrote:
> > On Tue, 30 Oct 2018, Dr Eberhard Lisse wrote:
> >
> >> it depends entirely on what you mean by efficient.
> >
> > el:
> >
> >   If I can highlight the entire file in emacs, use M-w to copy it, then
> > paste it in a blank LyX table that's efficient: 10 seconds or less.
> >
> > Thanks,
> >
> > Rich
>
> Well, for the sake of discussion:
>
> There may be cases where the table data is constantly being updated or
> it is a lot, and the LaTeX or LyX files need to be regenerated many
> times;  then, the task of creating tables in LyX using copy and paste
> may be impractical. For these cases, procedures and tools those are more
> automated would be quite helpful as Eberhand suggested.
>
> Of course, quick fixes like the ones that have been recommended in the
> group would suffice for one or two times of creation of tables, and we
> use these methods on daily basis.
>
> Bests,
>
> Baris
>
>
>
>


Re: Most efficient way to import wide, long table

2018-10-30 Thread Benedict Holland
Oh. My apologies. LibreOffice or Excel can split text based on a character.
In this case, I would bring your text into excel, split to columns on | and
copy it into a defined table within Lyx. Lyx accepts Excel "copy and paste"
as long as you have the table already defined. You would want Excel to
create your columns for you. This shouldn't take more than a few minutes.

Thanks,
~Ben

On Tue, Oct 30, 2018 at 2:28 PM Baris Erkus  wrote:

> On 10/30/2018 6:50 PM, Rich Shepard wrote:
> > I have an 82-line text file which has 5 columns separated by pipes. '|',
> > and a wide column with location names. Text file format examples:
> >
> >  10775| Santiam R. at Jefferson
> > Bridge  | 1979-11-06 | 2011-01-06 |67
> >  10386| Middle Fork Willamette R. at asper
> > Bridge   | 1979-11-06 | 2011-01-05 |66
> >  29043| Willamette R. at Willamette Park boat
> > ramp/Corvallis| 2002-10-02 | 2011-01-06 |60
> >  26339| Willamette R. upstream of Newberg Bridge at Rogers
> > Landing  | 2002-10-01 | 2011-01-13 |59
> >  10344| Willamette R. at Wheatland
> > Ferry| 1980-02-07 | 2011-01-10 |58
> >  29044| Willamette R. at Greenway bike
> > bridge/Eugene| 2002-10-02 | 2011-01-04 |52
> >  10379| Coast Fork Willamette R. at Hwy
> > 58  | 1979-11-06 | 2011-01-05 |50
> >  10821| Willamette R. at St. Johns
> > Bridge   | 2004-08-04 | 2011-01-11 |48
> >  10355| Willamette R. at Hwy 99E
> > (Harrisburg)   | 1980-02-06 | 2011-01-04 |46
> >  31731| Willamette R. at Wallace Marine Park boat
> > ramp  | 2005-05-31 | 2011-01-10 |44
> >  27986| Middle Fork Willamette R above Hills Crk at USGS Gage
> > 14144800  | 2002-10-03 | 2011-01-05 |44
> >
> > (N.B. Line length is 110 characters so it likely will be wrapped at
> > different lengths, depending on which MUA you use.)
> >
> >   In LyX this will be a long table in landscape orientation among
> > pages in
> > portrait orientation.
> >
> >   What is the most efficient procedure to import this to a 5-column,
> > 83-row
> > table? And, can I define the table size without dragging the table
> > icon off
> > the bottom of the monitor?
> >
> > TIA,
> >
> > Rich
>
> I have done this, seems to work:
>
> 1. Replace all the "|" with the tab character with a text editor.
> 2. Select the portion you want to paste.
> 3. Go to the first cell in Lyx.
> 4. Edit > Paste Special > Plain Text.
> 5. Table row and columns numbers should be compatible with the text file
> contents...
>
> However, if you want a more automated process, maybe you can generate a
> LyX file using some Matlab or Python code. Then insert this LyX file
> into your main LyX document.
>
> LyX has the following format for table cells:
>
>  bottomline="true" leftline="true" usebox="none">
> \begin_inset Text
>
> \begin_layout Plain Layout
>  CELL CONTENT 
> \end_layout
>
> \end_inset
> 
>
> Baris
>


Re: Most efficient way to import wide, long table

2018-10-30 Thread Benedict Holland
Create a table that is 5 columns and 84 rows (assuming you want a header).
Copy from excel into the table. You can specify rows and columns of your
table.

Next comes orientation. From the table, select properties and I would chose
fancy table options, long table, and then orient the page as landscape.

Thanks,
~Ben

On Tue, Oct 30, 2018 at 1:37 PM Rich Shepard 
wrote:

>I have an 82-line text file which has 5 columns separated by pipes. '|',
> and a wide column with location names. Text file format examples:
>
>   10775| Santiam R. at Jefferson Bridge
>   | 1979-11-06 | 2011-01-06 |67
>   10386| Middle Fork Willamette R. at asper Bridge
>| 1979-11-06 | 2011-01-05 |66
>   29043| Willamette R. at Willamette Park boat ramp/Corvallis
>   | 2002-10-02 | 2011-01-06 |60
>   26339| Willamette R. upstream of Newberg Bridge at Rogers Landing
>   | 2002-10-01 | 2011-01-13 |59
>   10344| Willamette R. at Wheatland Ferry
>   | 1980-02-07 | 2011-01-10 |58
>   29044| Willamette R. at Greenway bike bridge/Eugene
>   | 2002-10-02 | 2011-01-04 |52
>   10379| Coast Fork Willamette R. at Hwy 58
>   | 1979-11-06 | 2011-01-05 |50
>   10821| Willamette R. at St. Johns Bridge
>| 2004-08-04 | 2011-01-11 |48
>   10355| Willamette R. at Hwy 99E (Harrisburg)
>| 1980-02-06 | 2011-01-04 |46
>   31731| Willamette R. at Wallace Marine Park boat ramp
>   | 2005-05-31 | 2011-01-10 |44
>   27986| Middle Fork Willamette R above Hills Crk at USGS Gage
> 14144800  | 2002-10-03 | 2011-01-05 |44
>
> (N.B. Line length is 110 characters so it likely will be wrapped at
> different lengths, depending on which MUA you use.)
>
>In LyX this will be a long table in landscape orientation among pages in
> portrait orientation.
>
>What is the most efficient procedure to import this to a 5-column,
> 83-row
> table? And, can I define the table size without dragging the table icon off
> the bottom of the monitor?
>
> TIA,
>
> Rich
>


Re: you say install latest version of MiKTeX before installing LyX - what is the minimal version needed?

2018-10-16 Thread Benedict Holland
I have lyx working with texlive and it is awesome. No issues. TexLive is
really hard to install though.

On Tue, Oct 16, 2018 at 3:16 PM Richard Kimberly Heck 
wrote:

> On 10/15/18 12:13 PM, Paul Johnson wrote:
> > Hi:
> >
> > I was trying to compile texinfo on Windows, if you succeed, let me know
> how.
> >
> > https://www.gnu.org/software/texinfo
>
> I was able to cross-compile on Linux, but I'm a bit clueless about what
> to do with the result.
>
> The files texi2* that it installs are all scripts, for what it's worth.
> The main one seems to be texi2any, which is a Perl script. I'm not sure
> how much one really needs to run it.
>
> There's also this an older set of binaries here:
>
> http://gnuwin32.sourceforge.net/packages/texinfo.htm
>
> which might be good enough.
>
> Riki
>
>
>
> > On Sat, Oct 13, 2018 at 1:12 PM Richard Kimberly Heck 
> wrote:
> >> On 10/13/18 1:58 PM, Paul Johnson wrote:
> >>> The only critical flaw in TeXLive we have encountered is that it does
> >>> not include texi2pdf. Because of that absence, the R team is still
> >>> devoted to MikTeX as a part of the tool chain to build/use R for
> >>> windows. I spent a while trying to figure out how to compile texi2pdf
> >>> on Windows and gave up.
> >> Can you point me at the source code? I'd certainly have a go at
> >> cross-compiling it on Linux with mingw.
> >>
> >> Riki
> >>
> >>
> >
>
>


Re: Line breaks and track changes

2018-09-28 Thread Benedict Holland
I don't want to be one of "those people" but does the problem still persist
in 2.3.1? Typically the first response for issues is to ask that the user
upgrades to the latest stable version. I have breaks in my PDF and it seems
fine.

Thanks,
~Ben

On Fri, Sep 28, 2018 at 7:48 AM Daniel Goya  wrote:

>
>
> On Fri, 28 Sep 2018 at 08:20, Daniel  wrote:
>
>> On 27/09/2018 14:11, Daniel Goya wrote:
>> > Thanks Daniel, but I can't open the example file, I guess because of
>> the
>> > newer version I have installed right now. I'm not sure it's the same,
>> as
>> > I think it happens independent of layout. Chech the attached MWE.
>> >
>> > Best,
>> >
>> > Daniel
>>
>> I think the case is slightly different to the one I reported. So, it
>> might be worth reporting it separately and adding a reference to my
>> report for the similarity.
>>
>> Daniel
>>
>> Thanks Daniel, I will. Just wanted to check here first if you had any
> idea about it.
>
> Best,
>
> Daniel
>


Re: Important poll: would this dialog be confusing?

2018-03-19 Thread Benedict Holland
I would be in disagreement with Charles. Lyx has a massive range of users
from latex experts to novices. Power users will be incredibly upset if Lyx
does something that changes a working configuration without notifying them
first. It is even more important to get it right before release since it
affects the install. From my experience, I would probably not upgrade Lyx
if it changed MikTex if say, I had a publication that had to get out or a
dissertation that was almost finished. I remember frantically trying to
debug a beamer presentation because Lyx changed something with Beamer... a
day or two before I had to get it printed.

I, for one, greatly appreciate holding up something as massively disruptive
as a latex engine upgrade until it can be properly communicated to the
greater audience. Still, expect to see a bunch of questions regarding this.

Thanks,
~Ben

On Sun, Mar 18, 2018 at 8:11 PM, Scott Kostyshak  wrote:

> On Sun, Mar 18, 2018 at 10:27:25PM +, Charles Roddie wrote:
> > What matters most of all is a release. I understand that Windows release
> has been held up by extensive discussions over this issue of whether to
> include a dialog. This is a minor issue as few people read dialogs. Having
> a dialog is fine, and not having a dialog is fine.
>
> Thanks for the feedback.
>
> > Not having a version available for Windows however is a major problem
> for users.
>
> If there's one thing everyone here agrees on, it is this.
>
> > Also may I suggest that you upgrade your email list to a forum? It's
> unclear how to interact with this list without reading
> https://www.lyx.org/MailingLists
> in detail in its entirety and even then it's not self-contained.
> >
> > Apologies for the complaints: I appreciate the work of the lyx
> developers and the new features in 2.3 sound great.
>
> Thanks,
>
> Scott
>


Re: Important poll: would this dialog be confusing?

2018-03-16 Thread Benedict Holland
I would say that the only people who would update MiKTeX outside of a Lyx
install are power users.

I would simply state something like:

Lyx requires MikTeX 2.9 or later. Your version is X.X. Chose "Continue" to
automatically update MiKTeX to version X.X or cancel the LyX installation
and update MiKTeX manually.

You don't need to mention why they would update it manually or using it
with other applications or anything like that. I would say that if the Lyx
user understands the potential chaos for updating MiKTeX, you can just tell
them to manually do it.

I also assume that you will only show this dialog if MikTex is installed on
their system. If it isn't installed, you probably don't need to tell the
user that you are installing it.

Thanks,
~Ben


On Thu, Mar 15, 2018 at 7:52 PM, חיים רוזנר  wrote:

> haim.ros...@gmail.com:
>
> How about this:
> This version of LyX needs MikTeX v. ? at least. The installer found only
> earlier version of MikTeX / The installer could not find any installation
> of MikTeX on your system.
> And the buttons shall read 'Cancel' and 'Update MikTeX and install LyX' or
> 'Install MikTeX & LyX".
> Perhaps it should be clear somehow that the installer updates MikTeX to
> the most recent version, and tell the user what is the path of the old
> MikTeX detected by installer.
>
> PS Is there an option to have two different MikTeX versions installed on
> the same system? If there is such an option, then we need an option to tell
> that's path to this installer.
>
> Haim
>
> I mean, it should be clear that you cannot continue with old miktex, and
> it should offer you the update. For the avarage user that is enough.
> On the other hand, users that do not want to update their old miktex are
> considered intelligent enough to get the point that this installation would
> ruin their miktex habits. And if they want to get another supported miktex
> version, e.g. the first supported version, they can figure out they can do
> it on their own.
> Haim
>


Re: caption for tables and figures

2016-10-31 Thread Benedict Holland
Hi Katrin,

My guess is you want something like this.
http://tex.stackexchange.com/questions/150314/change-table-caption-numbering

You will probably need to create the tables using latex. I am unsure if Lyx
has a specific way of doing what you want. My guess is that you want to
renew the thetable command.

Thanks,
~Ben

On Mon, Oct 31, 2016 at 2:07 PM, John Kane  wrote:

> Welcome,
> Can you supply a minimal example showing the problem?
> There are some suggestions on how to prepare such a example at
> https://wiki.lyx.org/FAQ/MinimalExample
>
> On 31 October 2016 at 13:22, Hirsch, Katrin  wrote:
>
>> To whom it may concern,
>>
>>
>>
>> I am using lyx for a while now to write my thesis. It’s a nice software
>> as long as you know the little bits and bobs. But I sorted tables and so
>> on. Now I have a problem in setting the numbering of my tables and figures
>> (and equations) in a document of the class books(standard class with extra
>> fond sizes). I intend to have only one level in the numbering . But the
>> software seems to set the levels with respect to the chapter hierarchy.  Is
>> there a way to change the settings for the numbering of Tables, figures …
>> and equations as well?
>>
>>
>>
>> Kind regards
>>
>>
>>
>> Katrin Hirsch
>>
>> Clinical Demonstrator/PhD
>>
>> School of Life and Health Sciences
>>
>> Aston University
>>
>> Birmingham, B47ET
>>
>> Phone: 0121-204-4712
>>
>>
>>
>
>
>
> --
> John Kane
> Kingston ON Canada
>


Re: Appearance of bibliography references in LyX

2016-10-27 Thread Benedict Holland
Is this a problem with Lyx or the parser? What reference engine are you
using? Can you replicate it with biber and biblatex? I only harp on this a
bit because I ended up with huge problems with my .bib file and the
solution was to switch to biber (which AFAIK) is unsupported by lyx, though
that might have changed.

~Ben

On Thu, Oct 27, 2016 at 12:08 PM, Bernt Lie  wrote:

>
> -Original Message-
> From: Jürgen Spitzmüller [mailto:sp...@lyx.org]
> Sent: torsdag 27. oktober 2016 18.00
> To: Bernt Lie ; lyx-users@lists.lyx.org
> Subject: Re: Appearance of bibliography references in LyX
>
> Am Donnerstag, den 27.10.2016, 15:34 + schrieb Bernt Lie:
> > This happens with *all* of my references in LyX... Which may indicate
> > some weirdness of my set-up... Here is one item in the BibTeX file:
> >
> > @Article{LuisA.Forero2014,
> >   author= {Luis A. {Forero G.} AND Jorge A. {Vel{\'a}squez J.}},
> >   title = {{A modified Patel-Teja cubic equation of state. Part
> > II: Parameters for polar substances and its mixtures}},
> >   journal   = {Fluid Phase Equilibria},
> >   year  = {2014},
> >   volume= {364},
> >   pages = {75--87},
> >   owner = {Bernt},
> >   timestamp = {2016.10.25},
> > }
>
> > Thank you. I can confirm the problem. Looks like a bug in LyX's bibtex
> parser.
>
> First of all, the capital "AND" is not correctly parsed (which is one
> bug), but there are other bugs concerning the last names here. The LyX
> parser does not honor grouping in {...}.
>
> I will file a bug report.
>
> Note that the following will work:
>
> author= {Forero G., Luis A. and Vel{\'a}squez J., Jorge A.},
>
> Thanks
> Jürgen
> --
> Thanks, Jürgen! I hope you can fix this... my BibTeX file contains
> hundreds, if not thousands of references, and it would be a horrible job to
> change the grouping... (changing AND to and is easy, of course).
>
> -B
>


Re: controlling the space in itemize lists

2016-10-27 Thread Benedict Holland
In a perfect world, yes. From my understanding, the lyx integration of
beamer is quite complicated. Also, this makes a great deal of sense. The
itemized lists are under a frame object, so they are essentially treated as
a sub-object when the user hits tab, as they should be. It also clearly
denotes what lists and objects are under which frames and which objects
simply have their own window. I abuse this feature particularly when
presenting pictures, though I suppose I could create an empty frame and tab
the image over.

~Ben

On Thu, Oct 27, 2016 at 7:18 AM, UD  wrote:

> Wouldn't it be simpler (for users who are creating a slide presentation)
> to just include in the frame everything that comes after the frame title,
> unless indicated otherwise (perhaps by an explicit EndOfFrame mark?
>
> EK
>
> On 10/26/2016 07:50 PM, Paul A. Rubin wrote:
>
> On 10/26/2016 12:10 PM, UD wrote:
>
>
>
> Thanks to you all-- increasing the list depth did it (is that the most
> intuitive thing here?).
>
> It is for me. When you hit return after a frame title, you're in the frame
> environment, so text typed there will appear on the frame. As soon as you
> change to any other environment, though, you're out of the frame
> environment and need to nest under it.
>
> IIRC, before Jürgen refactored the Beamer layout you had to nest even
> ordinary text. So I guess it's a well-entrenched habit for me.
>
> Paul
>
>
>
> --
> Ehud Kaplan, Ph.D.
>
>


Re: Appearance of bibliography references in LyX

2016-10-27 Thread Benedict Holland
My guess is that would be the cause. Since you do not have a common (in a
typical citation style of last_name, first and first_name last_name and
first_name last_name), I believe it would treat "Rana A. Find AND Frank J."
as the first name and Millero as the last name. Also, this isn't a lyx
issue. You are probably using biber and biber processes bib files a bit
differently.

~Ben

On Thu, Oct 27, 2016 at 9:43 AM, Bernt Lie  wrote:

>
>
>
>
> *From:* lyx-users@lists.lyx.org [mailto:lyx-users@lists.lyx.org] *On
> Behalf Of *Wolfgang Engelmann
> *Sent:* torsdag 27. oktober 2016 15.36
> *To:* lyx-users@lists.lyx.org
> *Subject:* Re: Appearance of bibliography references in LyX
>
>
>
>
>
>
>
> On 27.10.2016 13:33, Bernt Lie wrote:
>
> I use LyX 2.2.1 (I assume that it is safe to upgrade to 2.2.2, but I haven’t 
> done it yet) under Windows 10.
>
>
>
> I’m somewhat puzzled by the way bibliography references appear in LyX. I use 
> JabRef for handling BibTeX files, to define labels to references, etc. Here 
> is one example:
>
>
>
>
>
> (taken from LyX; “Fine1975” is my chosen label – actually, automatically 
> defined by BibTeX...)
>
>
>
> HOWEVER, in the LyX document, this reference appears as:
>
>
>
>  or
>
>
>
> Why? Here is the full reference (from LyX):
>
>
>
>
>
> As seen, JabRef creates a key based on the first author, while LyX tends to 
> insert the last author name in the preview.
>
>
>
> But WHY? To me, it seems more logical to use the name appearing in the 
> lable – that would make it easier to read the preview and check the 
> author/reference.
>
>
>
> OK – I **realize** that the label doesn’t necessarily have to be an author 
> name. But in my experience, the **first** author is often the principal 
> author, and perhaps he/she should be given credit for that in the preview... 
> (The last author is often a supervisor and corresponding author, though).
>
>
>
> What is the thinking behind this?
>
>
>
> Thanks for clarification. Useful to know the answer, because it may influence 
> my choice of label...
>
>
>
> -B
>
> > Could it be that your AND (Capitals) between the authors instead of
> *and* is the cause? Just a thought Wolfgang
>
>
>
> I can check this, but the bibliography list itself looks fine...
>
>
>
> -B
>


Re: Spell check is not enabled on startup

2015-08-31 Thread Benedict Holland
Hi Scott,

I hit the button on the top bar and it then checks continuously, but also I
enabled it in the settings. When I restart, the button on the top bar (Aa
with the red line) is not selected but Aspell continuous checking is
checked.

~Ben

On Mon, Aug 31, 2015 at 4:26 PM, Scott Kostyshak  wrote:

> On Mon, Aug 31, 2015 at 4:16 PM, Benedict Holland
>  wrote:
> > Hi everyone,
> >
> > I have a strange bug and don't know if it is already known. When I
> install
> > lyx from the Ubuntu release repo, I start up lyx and continuous spell
> check
> > is not enabled. I enable it, close down lyx, start up lyx, and continuous
> > spell check is not enabled. This is despite the checked box on Aspell
> that
> > it should continually check spelling. Is this a known bug with a nice
> > workaround or is this the first time anyone has mentioned it?
>
> Hi Benedict,
>
> I use Ubuntu and haven't seen this before. After you check "continuous
> spell check", which button do you hit? Try hitting "Save". Is the
> preference still persistent when you exit and restart?
>
> Scott
>


Spell check is not enabled on startup

2015-08-31 Thread Benedict Holland
Hi everyone,

I have a strange bug and don't know if it is already known. When I install
lyx from the Ubuntu release repo, I start up lyx and continuous spell check
is not enabled. I enable it, close down lyx, start up lyx, and continuous
spell check is not enabled. This is despite the checked box on Aspell that
it should continually check spelling. Is this a known bug with a nice
workaround or is this the first time anyone has mentioned it?

Thanks everyone,
~Ben


Re: Lyx and Windows 10

2015-08-10 Thread Benedict Holland
You get the privilege of giving money to Microsoft. Also, I think it
prevents that really annoying pop-up saying THIS MIGHT BE UNSAFE RUN RUN
RUN~ OR YOUR COMPUTER WILL CRASH AND DIE HORRIBLY. NEVER TRUST
ANYTHING NOT VERIFIED BY US. Do you wish to install the application anyway?

AFAIK, this is the only benefit. Certification isn't too hard though, but
it costs about $1,000 every 2 years or something for a verisign licence.
This was all about 5 years ago. It might have changed but at work, we
refereed to this as the Microsoft tax.

On Sun, Aug 9, 2015 at 4:17 PM, Steve Litt 
wrote:

> On Sun, 9 Aug 2015 18:05:07 + (UTC)
> Kevin Jones  wrote:
>
> > I had a Lyx 2.1.3 installation on Windows 8.1. I have now upgraded to
> > Windows 10 - is Lyx 2.1.3 certified on Windows 10?
> >
>
> What would be the benefit of LyX 2.1.3 being "certified" on Windows 10?
>
> SteveT
>
> Steve Litt
> July 2015 featured book: Rapid Learning for the 21st Century
> http://www.troubleshooters.com/rl21
>


Re: disabled toc in the menu

2015-08-05 Thread Benedict Holland
Ahhh. I did try to read the whole thing. Its strange that it claims to be
fixed in 15.02 but I did a fresh 15.04 install with all updates and it
didn't work. I will download that package mentioned though. The bug reports
I found explaining this were very hard to follow but this link was great.

thank you,
~Ben

On Wed, Aug 5, 2015 at 9:37 AM, Richard Heck  wrote:

> On 08/04/2015 09:41 PM, Benedict Holland wrote:
>
> Hi Everyone,
>
> I am on Ubuntu 15.04. I did not experience this on 14.04. I am doing the
> workaround. It works. I am willing and happy to test this. This is really
> bad, as if that needed to be said. Let me know when or if I can help.
>
>
> If you read the rest of the bug report
>
> https://bugs.launchpad.net/ubuntu/+source/indicator-appmenu/+bug/1430059/
> you'll see that this was not a LyX bug at all, but a Gnome one. It also
> affected other programs. The fix appears to have been committed to newer
> Ubuntu versions.
>
> Richard
>
>
>
>
> Thanks,
> ~Ben
>
> On Sun, Aug 2, 2015 at 5:29 PM, Scott Kostyshak  wrote:
>
>> On Sun, Aug 2, 2015 at 5:04 PM, Sajjad < 
>> dosto.wa...@gmail.com> wrote:
>> > I am using ubuntu 15.04
>>
>> See
>> https://bugs.launchpad.net/ubuntu/+source/indicator-appmenu/+bug/1430059/comments/20
>>
>> Best,
>>
>> Scott
>>
>
>
>


Re: disabled toc in the menu

2015-08-04 Thread Benedict Holland
Hi Everyone,

I am on Ubuntu 15.04. I did not experience this on 14.04. I am doing the
workaround. It works. I am willing and happy to test this. This is really
bad, as if that needed to be said. Let me know when or if I can help.


Thanks,
~Ben

On Sun, Aug 2, 2015 at 5:29 PM, Scott Kostyshak  wrote:

> On Sun, Aug 2, 2015 at 5:04 PM, Sajjad  wrote:
> > I am using ubuntu 15.04
>
> See
> https://bugs.launchpad.net/ubuntu/+source/indicator-appmenu/+bug/1430059/comments/20
>
> Best,
>
> Scott
>


Re: Bibliography Formatting

2015-07-20 Thread Benedict Holland
I find, from experience, that the best thing you can do is learn biblatex.
Is this something you are willing to do? It has a very steep learning curve
but is very well documented and supported. Your problem is trivially solved
as well. Lyx can also use biblatex with a small amount of work that also
very well documented.

~Ben

On Mon, Jul 20, 2015 at 6:22 PM, Rich Shepard 
wrote:

>   The natbib doc focuses on citation styles so I suppose that the
> biblography style is controlled by bibTeX. I've not before modified bitTeX
> and have no idea what or where to modify to produce the output I want.
>
>   The bibliography has the publication year at the end of each listing. I
> want it following the author(s) name(s). Please provide a pointer to a doc
> that will teach me how to do this.
>
> Rich
>
>


Re: automatically updating latex code used in a LyX document

2015-07-08 Thread Benedict Holland
If you have generated the tex file in Stata, use ERT. It is much easier.
The command you want to look up is \input as in \input{table.tex}. This is
the only way I generate, edit, and include tables now. This should also be
the command that lyx uses... either that or include but I assume input
would be a better use in this situation. I also use another application to
edit the .tex because I need spell checking.

FWIW, I would highly recommend looking at how to make good tables using
booktabs. It isn't hard but stata produces some really ugly and hard to
read tables. Also, it doesn't know how to use longtable correctly and if
you need notes, you also need threeparttable. None of those are standard
output in State AFAIK and I know even know if lyx has a UI for
threeparttable.

Good luck,
~Ben

On Wed, Jul 8, 2015 at 4:39 AM, Ian  wrote:

>
> >
> > If you want to include a .tex file, you would Insert > File > Child.
> > See Help > Embedded, section 7.2 on Child Documents.
> >
> > Liviu
> >
>
>
> Thanks Liviu. Inserting a Child document .tex file was exactly what I
> wanted to do. I just didn't know what it was called.
>
>
>
>


Re: Ubuntu Trusty testers needed

2015-07-04 Thread Benedict Holland
Right. I deeply question that logic though. The fact that a corrupted save
bug was fixed is sort of a game changer from a usability perspective. I
mean, if it wasn't well known, well documented, or fixed, I might say that
it makes sense but as it stands, releasing code that has a known
catastrophic or critical or severe bug that was later fixed seems like it
will just cause far more problems in the future, especially on systems that
don't take updates.

Again, I wouldn't find this a problem except in this fairly rare case
particularly when the first thing to do is make sure that the software used
is up to date when it comes to fixing problems.

I suppose, that said, I don't mind testing lyx on various systems but the
2.0.8 branch is old and is in release for what, at least a year? What
additional testing, apart from that, is required? Is there a spec sheet for
various usability tests that should be performed or is it just ad-hoc
testing and report bugs to the channel?

~Ben

On Thu, Jul 2, 2015 at 6:28 PM, Richard Heck  wrote:

> On 07/02/2015 03:24 PM, Benedict Holland wrote:
>
>> Just curious, why are we testing old versions of an application with
>> known catastrophic bugs? Wasn't the uncorrupted save feature implemented in
>> the 2.1 branch? Also, I have been using the 2.1.3 exclusively for a long
>> time and I admit that I am a power user. It is stable as anything I use and
>> when combined with LuaTex, it produces beamer presentations and pdf
>> documents that are absolutely stunning. This includes images. XeLatex had
>> problems for me when importing PDF images but LuaTex does it far better.
>> None of this has to do with Lyx though. Lyx is performing beautifully and I
>> am using it to the fullest extent possible.
>>
>> The ONLY thing I have a gripe about is the lack of biblatex and biber
>> support. I get it, but I wish that it was there.
>>
>
> The testing here, I take it, is just to make sure that 2.0.8.1 works as
> expected on Ubuntu 14.04, which is still live (and widely used) and whose
> policies prohibit an upgrade to 2.1.x. Despite all the bugfixes.
>
> Richard
>
>


Re: Bibliography does not print when using biblatex instead of bibtex

2015-07-02 Thread Benedict Holland
I have been working with biblatex now for over a year. It is exceptionally
complex. It might actually be too complex to automate. I can't even think
up a decent UI to present the hundreds of different configuration options,
and there are probably even more than I use. The documentation alone is
several hundred pages.

The problem is that bibliogrophy generation is very very complicated. It
doesn't sound like it should be until you think about the dozens---possibly
hundreds---of different ways of doing it. Each journal has their own unique
way. Nothing is standard. There are regional differences between the US and
the EU. There are also no good defaults, even regionally. From a technical
perspective (I thought a lot about this), it is very challenging. It also
has only 1 major benefit and that is that biblatex handles unicode
flawlessly. Apart from that, I don't think it is that unreasonable to
assume that if you are using biblatex and biber that you are a bit more
advanced. You might not be a power user but you are also not just a button
presser either.

BTW, to the person who stated that linux handles paths incorrectly, no.
Just no. It doesn't. Windows handles paths incorrectly because everything
is capitalized thanks to really epically bad programming in the days of
Dos. Unix has always had case specific paths and this is way it should be.
It just means you, as the end user, need to be a bit careful.

~Ben

On Thu, Jul 2, 2015 at 10:13 AM, PhilipPirrip  wrote:

> On 07/02/2015 03:35 AM, Michael Berger wrote:
>
>> I hope some good guys will attend to this making the usage of biblatex
>> in LyX as easy as that of bibtex.
>>
>
>
> At least as a hack in the current code that will do this very same thing
> (biblatex with natbib compatibility) when biber is selected as a processor.
> Wishful thinking... :)
>
>
>


Re: Ubuntu Trusty testers needed

2015-07-02 Thread Benedict Holland
Just curious, why are we testing old versions of an application with known
catastrophic bugs? Wasn't the uncorrupted save feature implemented in the
2.1 branch? Also, I have been using the 2.1.3 exclusively for a long time
and I admit that I am a power user. It is stable as anything I use and when
combined with LuaTex, it produces beamer presentations and pdf documents
that are absolutely stunning. This includes images. XeLatex had problems
for me when importing PDF images but LuaTex does it far better. None of
this has to do with Lyx though. Lyx is performing beautifully and I am
using it to the fullest extent possible.

The ONLY thing I have a gripe about is the lack of biblatex and biber
support. I get it, but I wish that it was there.

~Ben

On Thu, Jul 2, 2015 at 11:33 AM, Liviu Andronic 
wrote:

> On Thu, Jul 2, 2015 at 11:57 AM, Jean-Marc Lasgouttes
>  wrote:
> > Dear all,
> >
> > Ubuntu trusty 14.04, the long term support version, currently only has
> LyX
> > 2.0.6. While it is not possible in a LTS version to upgrade to the latest
> > LyX version[*], it has been decided to update to the latest 2.0.x
> version,
> > that is 2.0.8.1.
> >
> > This is now accessible in the proposed channel. I encourage all Ubuntu
> > trusty users to try out this version, and report any problem on this bug
> > report:
> > https://bugs.launchpad.net/bugs/1303688
> >
> > Note that the comment "please upgrade to 2.1.3 instead" does not count :)
> >
> >
>
>
> > [*] and this is why Liviu graces us with his excellent lyx-devel ppa !
> > https://launchpad.net/~lyx-devel
> >
> Thanks, JMarc. I would only mention that the release PPA contains
> 2.0.8.1 packages for Trusty, which can be installed alongside (i.e.
> independently of) 2.1.3. Users only need to install the lyx2.0
> package:
> https://launchpad.net/~lyx-devel/+archive/ubuntu/release
>
>
> Regards,
> Liviu
>
>
> --
> Do you think you know what math is?
> http://www.ideasroadshow.com/issues/ian-stewart-2013-08-02
> Or what it means to be intelligent?
> http://www.ideasroadshow.com/issues/john-duncan-2013-08-30
> Think again:
> http://www.ideasroadshow.com/library
>


Re: Suggestion to improve Lyx for LaTEX users

2015-06-09 Thread Benedict Holland
I have to plug emacs for native lyx support. That application is awesome at
parsing raw Latex. As Richard said, this is the antithesis of why anyone
would use Lyx. I have become a huge fan of seamlessly integrating my latex
documents, mostly tables, using the input command and editing the .tex file
using emacs. Since there is already excellent Latex editors, I don't
understand why it would be desirable for Lyx to incorporate such features.

~Ben

On Tue, Jun 9, 2015 at 10:13 PM, Richard Heck  wrote:

> On 06/09/2015 06:13 PM, Scott Kostyshak wrote:
>
>> On Tue, Jun 09, 2015 at 10:00:25PM +0100, Ricardo Gaspar wrote:
>>
>>> Hi there,
>>>
>>> I am a new user of Lyx, but a not a beginner in LaTEX.
>>>
>> Hi Ricardo, and welcome! It's nice to have a fresh perspective. Please
>> keep providing feedback and if you happen to have the time and
>> interests, patches or (if you do not enjoy programming) improvements to
>> the documentation would be welcome. It's especially useful to receive
>> feedback from new users, in my opinion.
>>
>>  I couldn’t find in the internet why Lyx doesn’t allow to edit the source
>>> LaTEX file. It would be an awesome feature and could make Lyx a great rival
>>> against the other LaTEX editors.
>>> I like the simplicity of Lyx and the features it provides, but sometimes
>>> I would like to change or add code directly to the source file.
>>>
>>> Can you please answer this question? Or at least redirect me to a site
>>> where I can find it?
>>>
>> This is an often requested feature. See for example:
>> http://wiki.lyx.org/LyX/FeaturePoll2#toc10
>> http://www.lyx.org/trac/ticket/5260
>>
>> The basic answer, from what I understand, is simply that it is *very*
>> hard to parse LaTeX. LyX has its own format. It can export that format
>> to LaTeX very reliably, but it is extremely difficult to make that a
>> seamless two-way communication.
>>
>
> Yes, the basic problem is that this is highly non-trivial, though not
> impossible, and it isn't
> really compatible with the idea behind LyX. Contrary to how it is often
> advertised, LyX is
> NOT a LaTeX frontend. LaTeX is only one of the formats we natively export
> (though by far
> the most important).
>
> The ability to edit the LaTeX would basically involve offering the user
> the LaTeX source
> for some fragment of text, then running tex2lyx on whatever the user ended
> up with, then
> replacing the relevant fragment of text witih the result. This is still
> harder than it sounds,
> since tex2lyx outputs some text (a LyX file, basically), and what we
> really need is the data
> structure that LyX would create upon reading that file. This could be
> done, though, by reading
> the new text into a temporary Buffer and doing some kind of cut and paste
> behind the scenes.
> But there's not really any guarantee that what LyX would export at that
> point would actually
> be the same as what the user entered: That kind of 'roundtrip' is a goal,
> not a reality.
>
> Alternatively, the LaTeX the user created could become ERT. But then maybe
> such a user
> should just use LaTeX.
>
> Richard
>
>


Re: em dash doesn't display

2015-04-18 Thread Benedict Holland
I do not know about multiple versions but I can say that typing in 3 dashes
will produce an em-dash and 2 dashes will produce an en-dash. I would be so
bold as to say that if this works other than expected it would be a bug. It
is also possible that multiple versions of the same character will be
context dependant where HTML will use a different em-dash than a type 1
font pdf document.

~Ben

On Sat, Apr 18, 2015 at 1:50 PM, Richard Opheim  wrote:

> In LyX 2.1.3 (on Windows 8.1), I found producing an em dash in my ms to be
> difficult , and was not able to find any mention of it on the users' list.
> I produced an em dash in two ways: one, by typing three hyphens, and two,
> by selecting "insert-special character-symbols-[category] general
> punctuation-and then choosing the symbol in the seventh space (em dash.
> Actually, both symbols 7 and 8 [counting from the left] appear to be
> identical em dashes.) However, the em dash in the 7th space, as well as the
> em dash that was supposed to be displayed by typing three hyphens, didn't
> display in Document-view pdf latex (though they did display in HTML and
> DVI). Instead, I found that the adjacent em dash in the 8th space from the
> left did display in pdf-latex.
> There seem to be two "versions" each of the hyphen, en dash, and em dash.
> Presumably, one is for pdf-latex and the other is for other formats?
>
> Richard Opheim
> P.O. Box 2261 Arizona City, AZ 85123
> Tel: (1) 206-965-0564
> Skype name: richard.opheim
>
> Self-publishing Consultant
> Editing---Layout---Musical Scores---Images---Kindle conversion
>
> website URL:
> https://sites.google.com/site/opheimrichard/home
>
> self-publishing faq:
>  https:/ 
> /sites.google.com/site/opheimrichard/publishing-faq
> 
>
> publishing tasks:
> https://sites.google.com/site/opheimrichard/publishing-faq/publishing-tasks
>
> marketing techniques:
> https://sites.google.com/site/opheimrichard/publishing-faq/marketing
>
> Japanese translation & consulting:
> https://sites.google.com/site/japanesetranslationconsulting/
> 
>
> blog:
> http://foliocirculaire.blogspot.com
>
> *"It is* the glory of God to conceal a thing: but the honour of kings *is* to
> search out a matter."
> Proverbs 25:2
>


Re: howto change math fonts

2015-04-14 Thread Benedict Holland
It is my understanding that if a selected font has math characters with it,
that will automatically be used. Most fonts do not so it falls back to the
default. There are a series of default options which are quite good and if
it makes you feel better, having greek letters in one font and normal text
in another does not look bad at all. In fact, it is almost expected.

I hope that someone can shed light on this issue. I am almost certain this
is how it works but I am not 100% sure.

~Ben

On Tue, Apr 14, 2015 at 9:21 AM, Neal Becker  wrote:

> In the document/settings/fonts dialog:
>
> Using:
> Use non-tex fonts
>
> I can select various text fonts, but the only selection of math fonts is:
>
> Class Defaults (TeX fonts)
> Non-tex default
>
> Should other choices be available?
> (playing with document preamble, I haven't found a way to choose stix,
> xits,
> or asana that works).
>
> --
> Those who fail to understand recursion are doomed to repeat it
>
>


Re: Lyx numbering equations

2015-03-20 Thread Benedict Holland
Hello,

So you want to label each of the lines in order? If you are in the math
environment, right click and select "Displayed Formula". That will center
the entire math block. Then you can right click and number the whole
formula or each line. It is true that it will not number each line 1-4 and
equally true that would most likely not be very difficult but it is equally
not very difficult to just number each line. It is then possible to label
each line as something like equation_1, equation_2, equation_3 for easy
reference. That way you know that equation_1 is the first equation for
equation *equation. *To reference these numbers, you set up a cross
reference based on the labels you chose. This is actually really nice. Say
for example that you wanted to insert an equation between 3 and 4. You
don't have to worry about changing labels or references. It just does it.

Again, I really don't understand what the desired outcome would be or why
something doesn't work. All Lyx is doing is setting up a nice front end and
dealing with the \ref{} and \label{} tags for you. The cases where it makes
sense to have every single line in a math group labeled separately are
fairly edge case in nature and the problem easily  fixed with a few simple
right clicks.

Thanks,
~Ben

On Fri, Mar 20, 2015 at 11:32 AM, Robert Susmilch 
wrote:

> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> On 03/15/2015 09:59 PM, Hal Kierstead wrote:
> > This would be nice, and I think that I would use it, but I can
> > think of many other improvements that might be easier to implement.
> > For example: 1. LyX could remember the kind of reference associated
> > with a label. So instead of typing Lemma 14, I would only need to
> > type the reference to its label.  LyX already knows this because
> > its suggestions for labels look like lem: … .  I often forget
> > whether a reference is to a lemma or proposition, etc. 2. When I
> > know the label for a reference it would be nice to be able to enter
> > it directly from the keyboard (of course it would also be nice to
> > be able to enter its current number). 3. When I highlight a
> > reference in the pop-up window and then use the goto and return
> > buttons, it would be nice to still have the reference highlighted.
> > 4. The best thing, which is apparently very hard, would be to have
> > tex2lyx work perfectly on tex files that were originally created by
> > LyX, but have been modified by a coauthor without changing the
> > front matter.
> >
> > But it is a great app; I only wish my coauthors and students would
> > use it.
> >
> > Hal
>
> Dear Hal,
>
> I don't have much experience with Lyx right now, just beginning.
> However I can tell you this future student plans on utilizing it when
> I can!
> - --
> Respectfully,
>
> Robert Susmilch
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v2
>
> iQIbBAEBAgAGBQJVDD2LAAoJEJvhIiLnDQ8qo0wP+N7hRZ12b3RJ90Q4tB92bN1z
> MK2ygkN+2C6FzrsQ4fiI/Tg6WNKjXl3dMVEvmkwj12KAEwEKrzzxmwiAeBAXIhNB
> Bl7ha+QO3Gt4BKmHSgmCSkOygVF2uJqhb98EIvfokyAzgIEx1Itq7gfP7NTC1Ds0
> 9sE0skw7CEPoTzyTFHexCxObdoZ2nlHQ+fdW/LhiWoW/TaXg/Tf7qqmOB7GyYgAj
> MXhsL/KdZjXOc2DGpXDK9OVHZC2hrMwGD2+aW26v6Vtxp4/IvuRn5EEblKyh0DB0
> 3qrdVGim99t5iBE4ptBsYDsyry7l/g9X0lkUM+NMBbdo7tNosHJPXpoHzN53o0sl
> oJbiAwnC8pEzWwjuntIbZCFeA/Ffhlnvt/CTfDT+QQDHPqFefptzvclYhMUvnQdf
> DZ4NSWyiR20M49+iVa+z0heDfFPQiYpnGmD82AtOXZ1d8aHl01OHY4rIx7iKlh+H
> WovoSC9nhDSoYZBp1TaoyoYWDsUuspUY7r6qx75Puo3xHEHVejiUA5YA1T5yTn2T
> jRL00VJsvt7u+RzDMI3c0GaADjdeG67Frh9iBLPnnGpTVnB6iNefCdqZx2q0+vMY
> 7IH+/lDTgZ+fycCBDVYC+UxZ0fKIhskYHnNsY8oNONsED9CqmDnrzbFAWCWjIr3g
> VkveIloFUuyXQkSizlM=
> =t1+R
> -END PGP SIGNATURE-
>


Re: Lyx numbering equations

2015-03-20 Thread Benedict Holland
Hi everyone,

I am going to take a strong line on this one and say it works as designed
and the design is very well done. The reason for is it that you do have
references and labels, under the table, that lyx is managing for you. You
have an equation, you number the question, you label the equation, and you
never have to worry about it again. The reference automatically updates
with the removal or addition of equations prior to the referenced one. The
entire point of the labeling system is to make the numbering decoupled from
where an equation appears in the document and to that extent, it performs
very well. After reading various comments I actually have no idea what the
OP would like or what other people are suggesting.

Equation labels should be human readable and make sense to you and the
document. That is the proper use. If you are making them all a1, a2,... aN,
I can't help you but typically there are not many equations in documents
anyway. Each one is a bit different and requires a slightly different human
readable note attached with a number that you don't care about. It seems
perfect to me.

~Ben

On Fri, Mar 20, 2015 at 9:23 AM, John Kane  wrote:

> Fullwrite was abandoned about 1995 or 2000, sob.  I was not as crazy about
> it as Jerry since it was a bugger when doing tables but compared to
> something like MS Word it was heaven.
>
> On 20 March 2015 at 04:55, Michael Berger  wrote:
>
>> On 03/20/2015 08:44 AM, Jerry wrote:
>>
>>> On Mar 14, 2015, at 9:56 AM, Robert Susmilch 
>>> wrote:
>>>
>>>  This seems absurd given that Lyx purports to free you to write and not
 micromanage things like this. The tutorial goes on and on about using
 citations, bibliography, automatic section and chapter title numbering
 that takes care of itself. If I can number an equation and it's
 automatic that means the equation numbering can / will change as they
 are moved about, added or deleted, etc.

>>> I agree, but would stop short of "absurd" and simply say "awkward,"
>>> "clumsy," and then I'll stop. It does work. I believe that Microsoft Word
>>> and Mathematica require the same sort of tedious labeling, and those are
>>> not necessarily good models. I know for a fact that this problem can be
>>> handled better because I used the long-gone and much-loved FullWrite
>>> Professional for about 10 years, from 1988 to 1998, and it did not require
>>> labeling of anything. You simply inserted, as a reference, the current
>>> equation number and then FullWrite automatically kept everything up to
>>> date. It was just that simple.
>>> And, not trivially, FullWrite had a _graphical_ equation
>>> browser, a window of all your (filtered) stand-alone equations, numbered or
>>> not, in a scrollable window. Now _that_ was neat. I think I have filed a
>>> feature request for LyX but I don't expect anything to happen for a long
>>> time. However, LyX has an option to render equations on-screen already
>>> (Instant Preview) so it seems that the hard part of a graphical browser has
>>> already been done.
>>> With a graphical browser, one could assign nonsense labels (AA,
>>> AB, AC, ... or just 1, 2, 3, ...) and use the graphical browser to find the
>>> one to which you want to insert a reference and just click on the image.
>>> That's what you do anyway, only instead of a dedicated graphical browser,
>>> you just scroll around in your main document window until you find the
>>> equation you want to reference, and that's not efficient or fun.
>>>
>>>
>>> and then...
>>> On Mar 15, 2015, at 5:26 PM, David A Case 
>>> wrote:
>>>
>>>  On Sat, Mar 14, 2015, Robert Susmilch wrote:

> I have Googled a way to refer to numbered equations in text, such as
> "See equation (3)" in Lyx but everything I read, whether from other
> users or wikis, suggests labeling the already numbered equations and
> then using the label to cross reference.
>
> This seems absurd 
>
 This has been discussed before on this list.  The requirement to have a
 label makes good sense: how do you propose to refer to an equation that
 does not have a label?  Remember that its number will change as
 equations
 are added or removed, whereas the label will not change.

 It seems like you may wish to have a cross reference that says the
 following: "refer to the *current* equation (3), and update the number
 in
 the cross reference if the corresponding equation number changes."  This
 might be implemented by having LyX create a unique but hidden label for
 every numbered equation, and providing some sort of user interface to
 refer to it.

>>> Nice answer.
>>>
 For good reasons or bad, this is not the way LyX and latex work.

>>> Why do you say this? You just proposed a solution to use the LyX/Latex
>>> underpinnings to do that very thing. And that's probably the way FullWrite
>>> did it.
>>>
>>>Note that
 numbered equations a

Re: Title of referenced URLs

2015-02-09 Thread Benedict Holland
Sorry for getting back to you so late.

I tried this as the call to bibtex:

\usepackage[natbib=true,style=footnote-dw,urldate=long,abbreviate=true,pageref=true,idemtracker=false,backend=biber]{biblatex}


with a document I know would work with it. I get references that look like
this:


For example see Jens Abildtrup et al.: Spatial preference heterogeneity in
forest recreation, in: Ecological Economics 92.C (2013), 67–77, URL: http:

//EconPapers.repec.org/RePEc:eee:ecolec:v:92:y:2013:i:c:p:67- 77,


within the next and like this in the references section:


Hanemann,W. Michael: Valuing the environment through contingent valuation,
English, in: The Journal of Economic Perspectives

8.4 (1994), 19–43, URL: http://www.jstor.org/stable/2138337.


The output might look different. I see the URL, the title of the paper, and
all other relevant information. What is it exactly you are looking for?


Thanks,

~Ben

On Fri, Feb 6, 2015 at 8:21 AM, jezZiFeR  wrote:

> Dear Ben,
>
> I think I don’t understand exactly what you mean. This is what I have in
> the preamble:
>
> \usepackage[natbib=true,style=footnote-dw,urldate=long,abbreviate=true,pageref=true,idemtracker=false,backend=biber]{biblatex}
>
> Should I modify something?
>
> Thank you
> Jess
>
>  Benedict Holland 
>  5. Februar 2015 17:55
> In that case, can you post your call to biblatex located in the preamble?
>
> ~Ben
>
>
>   jezZiFeR 
>  5. Februar 2015 12:49
> Hello Ben,
>
> yes, I use biber as backend, sorry for not telling that before. So I have
> those problems in spite of using biber.
>
> Best
> Jess
>
>
>
>
>  Benedict Holland 
>  4. Februar 2015 17:56
> Are you using biblatex and biber as a backend? I don't think bibtex and
> bibtex8 displays URLs by default. Biber does however. If this is something
> which you need, perhaps biber is an option you want?
>
> ~Ben
>
>
>   jezZiFeR 
>  3. Februar 2015 18:18
> Hello,
>
> I have a question regarding citing-formats for URLs. In the moment I don´t
> get figured out, how the title of my reference could be displayed. In
> BisDesk I tried out the different BibText-types (URL, electronic, webpage).
> None of them shows the title, and also noct the URL-date. I use the recent
> version of BibDesk, LyX and have installed biblatex-dw, which I use with
> footnote-dw.
>
> Is it normal, that the title of electronic sources is not shown?
>
> Thank you
> Jess
>
>


Re: Title of referenced URLs

2015-02-05 Thread Benedict Holland
In that case, can you post your call to biblatex located in the preamble?

~Ben

On Thu, Feb 5, 2015 at 6:49 AM, jezZiFeR  wrote:

> Hello Ben,
>
> yes, I use biber as backend, sorry for not telling that before. So I have
> those problems in spite of using biber.
>
> Best
> Jess
>
>
>
>
>  Benedict Holland 
>  4. Februar 2015 17:56
> Are you using biblatex and biber as a backend? I don't think bibtex and
> bibtex8 displays URLs by default. Biber does however. If this is something
> which you need, perhaps biber is an option you want?
>
> ~Ben
>
>
>   jezZiFeR 
>  3. Februar 2015 18:18
> Hello,
>
> I have a question regarding citing-formats for URLs. In the moment I don´t
> get figured out, how the title of my reference could be displayed. In
> BisDesk I tried out the different BibText-types (URL, electronic, webpage).
> None of them shows the title, and also noct the URL-date. I use the recent
> version of BibDesk, LyX and have installed biblatex-dw, which I use with
> footnote-dw.
>
> Is it normal, that the title of electronic sources is not shown?
>
> Thank you
> Jess
>
>


Re: Title of referenced URLs

2015-02-04 Thread Benedict Holland
Are you using biblatex and biber as a backend? I don't think bibtex and
bibtex8 displays URLs by default. Biber does however. If this is something
which you need, perhaps biber is an option you want?

~Ben

On Tue, Feb 3, 2015 at 12:18 PM, jezZiFeR  wrote:

> Hello,
>
> I have a question regarding citing-formats for URLs. In the moment I don´t
> get figured out, how the title of my reference could be displayed. In
> BisDesk I tried out the different BibText-types (URL, electronic, webpage).
> None of them shows the title, and also noct the URL-date. I use the recent
> version of BibDesk, LyX and have installed biblatex-dw, which I use with
> footnote-dw.
>
> Is it normal, that the title of electronic sources is not shown?
>
> Thank you
> Jess
>


Re: LyX+Scilab

2015-01-28 Thread Benedict Holland
Naw, the issue is just that R is messy. Actually, for this particular case,
I was chuckling a bit since it isn't wrong how R did it, it is just the way
R does it. C++ is exactly the same. Unfortunately, the answer that I will
give for this thread is that the OP should really just learn R or figure
out a workaround. I have done a huge amount of work in many languages and
basically I would not wish to merge them. Loosely coupled code is much
better than tightly coupled. Reading in a CSV or a PDF is much better style
than generating it and working with it inside of a document. Eventually you
start asking yourself questions like, if I gave this Lyx document to a
friend, would they have any idea what I did and could they figure it out in
under 2 minutes? If the answer is no, I might suggest finding a different
way to attack the problem.

I was thinking about this though. For plots, R is one of the best tools you
can use. Believe you me, illustrator is probably the best but R does a
really good job and is not 800$. What I really recommend for plots is that
you save the plot and load it into the document. I have done this many
times. That way, you are regenerating the same plot every time you compile
your document. Also, as long as you can generate a PDF image, you can
include it.

Now I bet there is a case where the plot should be dynamic with every
compile and if that is the case, I don't really know where to go apart from
learning R... if only for the plotting which is some of the best you will
find anywhere. I actually find the whole idea of integrating R into Lyx to
be interesting but misses the point a bit. For tables I could see it being
very useful but within the boundaries of whatever automatically sets up the
table formatting. For images, I would save it and import it as a pdf. BTW,
I have had no end of problems working with sweave and the stata latex
output. It essentially requires me to rewrite the tables anyway. Problems
range anywhere from writing off the end of the page to generating tables
which are unreadable.

BTW, totally off topic but Python is very versatile. It actually makes much
more sense with the power behind dictionaries, document parsing, document
merging, string manipulations, data management, etc. for it to be included
in Lyx. That I am sure was a feat of engineering.

I honestly don't know what to tell the OP anymore as latex includes many
many ways to integrate PDF images within a document. Generating the PDF
outside of the document and importing it seems like far less work than
trying to get it all working in Lyx.

~Ben

On Wed, Jan 28, 2015 at 10:56 PM, Jerry  wrote:

>
> On Jan 25, 2015, at 2:56 PM, Benedict Holland <
> benedict.m.holl...@gmail.com> wrote:
>
> > On Sun, Jan 25, 2015 at 4:38 PM, Francesco Menoncin <
> francesco.menon...@unibs.it> wrote:
> > Hello Benedict,
> > thank you for your answer.
> > I give you an example about how R is difficult for dealing with
> matrices: if in Matlab (or Scilab or Octave or simila) I write:
> >
> > x(2,2)=10
> >
> > the following matrix is automatically created:
> >
> > [0 0
> > 0 2]
> >
> > while in R
> >
> > x[2,2]=10
> >
> > gives an error because I first have to declare to R that x is a matrix
> and, furthermore, give it the right dimension.
> > If, afterward, I want to add an element to the matrix x, in Matlab I
> simply write:
> >
> > x(3,1)=5
> >
> > and I obtain the matrix:
> >
> > [0 0
> > 0 10
> > 5 0]
> >
> > while in R I cannot do that, because x has already been defined as a 2
> by 2 matrix.
> > I find all this very inefficient for dealig with matrices.
> > This is my point :-)
> >
> > Francesco
> >
> I'm not familiar with R but what you are saying about R in comparison with
> Matlab or Octave is that Matlab/Octave do not check array bounds. Thus, you
> might erroneously write into a matrix element that doesn't exist and
> Matlab/Octave does not report an error. Array bounds checking is the price
> to pay for having safer code. FWIW, Python and Mathematica are examples of
> languages that are only "half-safe" with respect to array indexing, meaning
> if you write past the beginning of an array (usually negative indexes) it
> assumes you want to index the array backwards, from the end. These are all
> conveniences but of course can also cause erroneous results or increased
> time spent debugging. I personally am happy to write in a safe language
> (Ada) and spend a little bit more time writing code (it's easy to declare a
> new array and copy the old one into it; you can write a subroutine if you
> want) and virtually zero time chasing bugs, but others prefer otherwise and
> that's fine.
>
> Jerry


Re: LyX+Scilab

2015-01-25 Thread Benedict Holland
So then the problem isn't with inefficient matrix computations but with the
language itself. On that I can wholehearted agree. I would say though, IMHO
Matlab isn't much better, and in fact can be much much worse. I tend to try
to avoid R but it is a very powerful language once you get the basics. What
you might consider doing is dealing with data frames and then converting
into matrices. R is essentially a data frame language with some stuff
stapled on the side, like python is a dictionary language with some stuff
stapled on the side. Matlab is strange with most variables being fully
scoped and that drives me crazy. Honestly, in the long run you will get
many benefits with R that you won't get with Matlab. I recommend picking it
up. Also, I wouldn't expect any proprietary software to be compatible with
lyx. That sort of development is very difficult.

What I would recommend doing is using whatever language you want and saving
whatever it is as a CSV. From there, I would write a script which will
automatically spit out the middle part of a table. Something along the
lines of

Header 1 & 1 & 2 & 3 \\
& (1) & (2) & (3) \\
Header 2 & 1 & 2 & 3 \\
& (1) & (2) & (3) \\

etc. Then all that is required for you to do is start the tabular
environment:

\begin{tabular}{l>m{.25cm}...}

\end{tabular}

The hardest part that lyx and most automated table generators have
(including and especially R and Stata) is the header which defines how your
table should look and feel. If your table is long, it should use longtable.
If you want table notes, you need to use three part table. Do you want it
to look nice and want full control over line widths and line placement? Use
booktabs. These are highly context dependent and really up to the end user,
making them very difficult to automate leaving someone like you and me with
the requirement to learn how to typeset tables manually. Look at booktabs
and threeparttable for guides. Making a good table takes a very long time
and requires you to become good with typesetting. Choosing to read in a CSV
and export a latex table middle will allow you to use quite literally
whatever software you want, as long as it can produce a CSV. Actually, if
it would help, I might be able to whip up a script sometime soon in python.
It will not be the most robust script in the whole of scripting, but should
at least be usable. I don't really deal with lyx/python interactions as I
prefer to leave the two separate. Perhaps though, with the script, it might
not be so bad and something worth considering.

~Ben

On Sun, Jan 25, 2015 at 4:38 PM, Francesco Menoncin <
francesco.menon...@unibs.it> wrote:

>  Hello Benedict,
> thank you for your answer.
> I give you an example about how R is difficult for dealing with matrices:
> if in Matlab (or Scilab or Octave or simila) I write:
>
> x(2,2)=10
>
> the following matrix is automatically created:
>
> [0 0
> 0 2]
>
> while in R
>
> x[2,2]=10
>
> gives an error because I first have to declare to R that x is a matrix
> and, furthermore, give it the right dimension.
> If, afterward, I want to add an element to the matrix x, in Matlab I
> simply write:
>
> x(3,1)=5
>
> and I obtain the matrix:
>
> [0 0
> 0 10
> 5 0]
>
> while in R I cannot do that, because x has already been defined as a 2 by
> 2 matrix.
> I find all this very inefficient for dealig with matrices.
> This is my point :-)
>
> Francesco
>
> Il 25/01/2015 22:25, Benedict Holland ha scritto:
>
> R is not so easy to use for big matrix computations? This is a first for
> me. R is extremely efficient at dealing with matrices. If you have huge
> matrices, I don't think it would perform much better than anything else. If
> you need sparse matrix functionality, R comes with it built in. Python is
> actually horrible for mathematical computations since it basically runs
> everything in FORTRAN and C. The overhead to manipulate the data to call
> these libraries is enormous. R might actually be doing the same. Matlab
> does this as well.
>
>  Honestly, what I have found is that printing tables and results is best
> done by manually coding latex using booktabs and three part table. It isn't
> that hard to do either. Write your results as a CSV and if you are good at
> scripting, just separate the csv from the data frame into rows. Add a
> header and you are good to go. This way, any time you have a CSV, you can
> easily get it into tabular format and all you have to do is specify the
> header and footer, something that is notoriously difficult to automate.
> Trust me, I have tried a dozen or more times and it never just works.
>
>  ~Ben
>
> On Sun, Jan 25, 2015 at 3:35 PM, Steve Burnham  wrote:
>
>>  Ther

Re: LyX+Scilab

2015-01-25 Thread Benedict Holland
R is not so easy to use for big matrix computations? This is a first for
me. R is extremely efficient at dealing with matrices. If you have huge
matrices, I don't think it would perform much better than anything else. If
you need sparse matrix functionality, R comes with it built in. Python is
actually horrible for mathematical computations since it basically runs
everything in FORTRAN and C. The overhead to manipulate the data to call
these libraries is enormous. R might actually be doing the same. Matlab
does this as well.

Honestly, what I have found is that printing tables and results is best
done by manually coding latex using booktabs and three part table. It isn't
that hard to do either. Write your results as a CSV and if you are good at
scripting, just separate the csv from the data frame into rows. Add a
header and you are good to go. This way, any time you have a CSV, you can
easily get it into tabular format and all you have to do is specify the
header and footer, something that is notoriously difficult to automate.
Trust me, I have tried a dozen or more times and it never just works.

~Ben

On Sun, Jan 25, 2015 at 3:35 PM, Steve Burnham  wrote:

> There is a package on CTAN called pythontex that allows you to run python
> from within a document.  I know LyX heavily relies on Python as well and I
> think I have seen mention of people using python code in their documents.
> I used to use Matlab for data processing but have completely switched over
> to python so I’m pretty sure you could do everything you want to do in
> python.
>
>
> -Steve
>
> On January 25, 2015 at 7:00:05 AM, Francesco Menoncin (
> francesco.menon...@unibs.it) wrote:
>
> Dear LyXers,
> I use and I like very much the package Knitr for executing R commands in
> LyX. Nevertheless, R is not so easy to use for big matrix computation. I
> wonder whether there exists a project similar to Knitr but allowing to
> code in LyX in other languages like Scilab, or Octave, or Matlab.
>
> Thank you
>
> Francesco
>
> --
> ---
> Francesco Menoncin
> Associate Professor
> University of Brescia
> Department of Economics and Management
> E-mail: francesco.menon...@unibs.it
> Tel. 0039-0302988806
> Fax. 0039-0302988836
> https://sites.google.com/site/francescomenoncin/
> http://www.eco.unibs.it/~menoncin/
>
>
> --
> Informativa sulla Privacy: http://www.unibs.it/node/8155
>
>


Re: Newbie question: which pdf reader to use with Windows 8.1?

2014-12-04 Thread Benedict Holland
Actually, also, regarding the corruption. That should also be posted on the
Lyx forum as a case study to determine why Adobe treats it as corrupted.
There is an ISO standard for Adobe PDF files. it is possible that Adobe is
much less flexible about their standard than other browsers. It is also
possible that there is a bug with lyx if this occurs. BTW, I have no
affiliation with Adobe at all but everyone uses it and if I don't use it, I
can easily run into problems where it will view in one browser but not in
others. I can't afford that issue.

~Ben

On Thu, Dec 4, 2014 at 10:31 AM, Benedict Holland <
benedict.m.holl...@gmail.com> wrote:

> Be very careful when viewing Beamer presentations with anything other than
> Adobe. I have found that the presentations never display correctly and when
> giving a presentation, it is almost a guarantee that you will be presenting
> on Adobe. If you are not using Beamer, anything else should work. I stick
> with Adobe because it is the standard. If potential problems occur, I might
> have to switch but for now, it seems better for me to deal with the issues
> than switch.
>
> ~Ben
>
> On Wed, Dec 3, 2014 at 11:53 PM, Ashok  wrote:
>
>> Thanks a lot, folks. I went for Sumatra. It works like a charm. It can
>> even keep more than one pdf output in tabs.
>>
>> Only thing: when I close the Lyx file I was working on, without closing
>> Sumatra, I get a message saying something like "Couldn't close temporary
>> directory". Something similar comes even when I exit from Lyx. I hope it's
>> harmless.
>>
>> Ashok
>>
>> PS: A bonus for using Sumatra. It makes viewing other ebook formats easy
>> to read. Unlike Calibre, it doesn't insist on bringing ePub or Mobi into
>> its library first. It reads it. What's more: it's a very good .chm reader!
>> I'm thinking of making Sumatra the default viewer for pdf and everything;
>> keeping Acrobat Pro only for those occasions when I want to edit or
>> combine pdf files.
>>
>>
>


Re: Newbie question: which pdf reader to use with Windows 8.1?

2014-12-04 Thread Benedict Holland
Be very careful when viewing Beamer presentations with anything other than
Adobe. I have found that the presentations never display correctly and when
giving a presentation, it is almost a guarantee that you will be presenting
on Adobe. If you are not using Beamer, anything else should work. I stick
with Adobe because it is the standard. If potential problems occur, I might
have to switch but for now, it seems better for me to deal with the issues
than switch.

~Ben

On Wed, Dec 3, 2014 at 11:53 PM, Ashok  wrote:

> Thanks a lot, folks. I went for Sumatra. It works like a charm. It can
> even keep more than one pdf output in tabs.
>
> Only thing: when I close the Lyx file I was working on, without closing
> Sumatra, I get a message saying something like "Couldn't close temporary
> directory". Something similar comes even when I exit from Lyx. I hope it's
> harmless.
>
> Ashok
>
> PS: A bonus for using Sumatra. It makes viewing other ebook formats easy
> to read. Unlike Calibre, it doesn't insist on bringing ePub or Mobi into
> its library first. It reads it. What's more: it's a very good .chm reader!
> I'm thinking of making Sumatra the default viewer for pdf and everything;
> keeping Acrobat Pro only for those occasions when I want to edit or
> combine pdf files.
>
>


Re: lyx on the "cloud"

2014-10-02 Thread Benedict Holland
I use dropbox for something similar. That also means that your .lyx folder
should also be on there and any changes you make to the default
configuration are synced.

~Ben

On Wed, Oct 1, 2014 at 8:12 AM, Helge Hafting  wrote:

>
> Den 25. sep. 2014 12:06, skrev Renato Pontefice:
>
>   Hi,
>  I would use Lyx everywhere. Instead of Libre/Open Office. But To do that,
> I need a service, that let me use it everywhere. i.e., if I write a Lyx doc
> on my pc, the I go to an office, that do no has Lyx (but for sure, it has a
> internet connection), I would/coul use it, without my pc.
>
>  Is there a cloud service that do that?
>
> Not to my knowledge, but you may install LyX on a USB stick and run it
> from there.  USB sticks are cheap and easier to bring than a laptop.
>
> Helge Hafting
>
>
>


Re: how to restrict cited authors to 3 in the Bibliography

2014-09-26 Thread Benedict Holland
Wouldn't that change the default for every document using that particular
style though? If this is only for one journal, modification of style files
would not only be overkill, but would impact future work in unexpected
ways. To get the desired results, it would be best to limit it to document
specific changes. For that, configuring biblatex or biber or biblatex using
biber would be the much more prefered approach. A philosophy of "don't
change more than you need to" is demanded when using lyx and latex, at
least to me. That said, yes. Changing the format of how bibtex writes out
the references in the document would work but from a technical standpoint,
that does far more than just change the reference output for a single
document so would best be avoided.

~Ben

On Fri, Sep 26, 2014 at 4:34 PM, Julien Rioux  wrote:

> On 26/09/2014 9:38 AM, Wolfgang Engelmann wrote:
>
>>
>> Am 26.09.2014 um 15:34 schrieb Wolfgang Engelmann:
>>
>>> I use spbasic (Springer Publ) as the bibstyle
>>> (Koma script book)
>>> and get the citations in the text right (Author1, X et al)
>>> However, in the references all Coauthors are cited. How can I resrict
>>> it to 3?
>>> I tried to find an answer in the net, adding
>>> \usepackage{natbib} to the preamble did not help.
>>> Anybody who could help with a pointer?
>>>
>>> Wolfgang
>>>
>> p.S.
>> In the references it should read like
>> Author1,X, Author2,X Author3,X et al
>> where X is the prenome abbreviation
>>
>>
>>
>
> To stick to bibtex, you would have to slightly modify the .bst style file,
> namely the format.names function, maybe something like this:
>
> $ diff -u spbasic.bst spbasic3.bst
> --- spbasic.bst 2014-09-26 16:17:29.093778700 -0400
> +++ spbasic3.bst2014-09-26 16:25:46.120207000 -0400
> @@ -490,6 +490,12 @@
>if$
>nameptr #1 + 'nameptr :=
>namesleft #1 - 'namesleft :=
> +  nameptr #3 >
> +  namesleft #0 >
> +  and
> +{" " * bbl.etal * #0 'namesleft :=}
> +{}
> +  if$
>  }
>while$
>} if$
>
> The above says, if 3 names have already been printed, and the number of
> names remaining to be printed is greater than zero, than print " " and "et
> al" and set the number of remaining names to zero.
>
> Attached is spbasic3.bst, a style file based on spbasic.bst with the above
> change.
>
> Cheers,
> Julien
>
> --
> Julien
>


Re: letterhead with Koma2 or letter

2014-09-26 Thread Benedict Holland
You might have to get your configuration with ERT. I find a lot of
formatting is complicated with koma. You could also play around with your
din.lco file. That is where all of the spacing is defined unless
overridden. I might suggest an ERT of \raggedright with the includeimage
command. It is hard without seeing your document but specific formatting
that differs from the defaults I always find is better done with ERT. As a
really bad alternative, you can play around with the din file but I would
really not recommend that unless you absolutely have to.

BTW. I should note this because these seem to be a lot of koma questions
cropping up. Koma is extremely complicated and powerful. The manual is over
200 pages. It can do anything you want but the trick is to get it
configured the exact way you want. At one point I did actually go through
about a quarter of the manual. I found that playing around with the margins
to get exactly what I needed was the easiest approach.

~Ben


On Fri, Sep 26, 2014 at 12:41 PM, renato  wrote:

> Hi,
> I followed your tips, and I obtained the file attached Here. But I need to
> obtain something like the other file that I attach (Meridiana.pdf)
>
> I mean:
> - the logo on the header is on the right
> - the footer could be an image (can I can realize it with script?, it
> would be
> better. This, is an image of a letterhead realized wiith latex)
>
> I would use Lyx, because it will better to write simple letter. But to do
> that, I need a letterhead (I hope to explain myself).
>
>
> Thank you
>
> Renato
> On Friday 26 September 2014 07:57:43 Jean-Marie Pacquet wrote:
> > Le 25/09/2014 22:11, renato a écrit :
> > > Hi,
> > > please, help me to set letterhead. I tried koma2 and letter class. I
> read
> > > the same document (in different site) googling around. But I'm in the
> > > same situation...
> > > How can I put Image on the top left and the bottom of the page?
> > >
> > > TIA
> > >
> > > Renato
> >
> > Renato,
> >
> > Did you try the example ksl2pro.lyx shown here:
> > http://wiki.lyx.org/Examples/KomaLetter2 ? It has an image on the top
> left.
> > If that does not work for you, please indicate exactly what kind of
> > error you get, then I might be able to help.
> >
> > Regards
>


Re: how to restrict cited authors to 3 in the Bibliography

2014-09-26 Thread Benedict Holland
I would say that what could go wrong is your references might need to be
cleaned up. I know that was the huge shift for me. The major difference
(and in my opinion a terrible decision) is that biblatex assumed that your
bib file is valid latex code. That means that all reserved characters are
escaped. I work in economics so for me, the dollar sign was the big one. I
also found that there are a lot of configuration options. For me, this code
was the closest I closest I got to the default lyx.

BTW, biber should work well too. Both require additional work. For me,
biblatex was the choice I made but I am not saying it is the only choice.

The document explaining biblatex-lyx integration is here.
http://wiki.lyx.org/BibTeX/Biblatex If you follow the steps carefully it
should not be problematic. This will require some careful tweaking on your
end though. It took me a very long time to get two or more authors to be
author 1 et. al. AND for the full list of authors to be listed in the
bibliogrophy. For you, Wolfgang, given the specific requirements I would
suggest biblatex. Getting it work will only help you in the long run but I
found the process to less ideal than I would have liked. It took me about
an hour or two to get everything working the way I wanted it to and most of
it was figuring out the usepackage options.

~Ben

On Fri, Sep 26, 2014 at 2:47 PM, stefano franchi 
wrote:

>
>
> On Fri, Sep 26, 2014 at 11:13 AM, Wolfgang Engelmann <
> engelm...@uni-tuebingen.de> wrote:
>
>>
>> Am 26.09.2014 um 18:02 schrieb Wolfgang Engelmann:
>>
>>> Thanks, Benedict.
>>> How difficult is it to switch to biblatex and what can go wrong?
>>> Wolfgang
>>>
>> And what about biber under lyx?
>
>
> Biber/biblatex usually work well under lyx if you follow the instructions
> in the wiki.
> Or did you have a specific problem in mind?
>
> S.
>
> --
> __
> Stefano Franchi
>
> stefano.fran...@gmail.com 
> http://stefano.cleinias.org
>


Re: how to restrict cited authors to 3 in the Bibliography

2014-09-26 Thread Benedict Holland
You should use biblatex. It has the ability to do this. For my example,

\usepackage[

uniquename=false,

uniquelist=false,

maxcitenames=2,

mincitenames=1,

maxbibnames=200,

minbibnames=1,

natbib=true,

url=false,

doi=false,

isbn=false,

eprint=false,

backref=false,

backend=biber,

style=authoryear-comp,

]{biblatex}


maxcitenames, mincitenames will have to be configured to get what you want
but those two options will allow what you need.


~Ben

On Fri, Sep 26, 2014 at 9:38 AM, Wolfgang Engelmann <
engelm...@uni-tuebingen.de> wrote:

>
> Am 26.09.2014 um 15:34 schrieb Wolfgang Engelmann:
>
>  I use spbasic (Springer Publ) as the bibstyle
>> (Koma script book)
>> and get the citations in the text right (Author1, X et al)
>> However, in the references all Coauthors are cited. How can I resrict it
>> to 3?
>> I tried to find an answer in the net, adding
>> \usepackage{natbib} to the preamble did not help.
>> Anybody who could help with a pointer?
>>
>> Wolfgang
>>
> p.S.
> In the references it should read like
> Author1,X, Author2,X Author3,X et al
> where X is the prenome abbreviation
>
>


Re: Pages numbering in the right upper corner

2014-09-23 Thread Benedict Holland
You want to use a package called fancyhdr.

This code will put the page number at the bottom left on odd numbered pages
and right on even numbered pages.

\usepackage{fancyhdr}

\fancyhf{} %clears everything

\renewcommand{\headrulewidth}{0pt} %make header line 0 width

\renewcommand{\footrulewidth}{0pt} %make footer line 0 with

\renewcommand*\footnoterule{}


%Note that this is the actual number on the page number not the page number

%because the second page starts at 1. The second page is actually an odd
page

%because it is labeled as 1.

\fancyfoot[LO]{\thepage} %Place the page number on the left for even pages

\fancyfoot[RE]{\thepage} %Place the page number on the right for odd pages



Just as a note, there are many answers to this question if you google
search "move page number". Look up the documentation for fancyhdr and make
it to your style. I am unaware of any lyx specific functionality that does
this but the amount of latex code is minimal. Also, place that code in your
preamble.


~Ben

On Tue, Sep 23, 2014 at 5:13 AM, Wolfgang Engelmann <
engelm...@uni-tuebingen.de> wrote:

>  For Koma script you can use in the preamble
> %%Seitenangabe oben rechts >>page number top right
>
> \usepackage{scrpage2}%%ohne diesen Befehl gehen die folgenden nicht!
>
> \pagestyle{scrheadings} %% auf benutzerdefinierten Stil umschalten
>
> \clearscrheadfoot
>
> \ihead{\headmark}
>
> \ohead{\pagemark} %% Seitenzahl oben mittig
>
>
>  Am 22.09.2014 um 20:33 schrieb Harold Mouras:
>
> Dear Lyx Users,
>
> the journal for which I am writing an article is asking a different page
> numbering with "page numbers go in the upper right-hand corner, starting
> with p. 2 as the Abstract in the manuscript (which is the page 3 of the LyX
> document).
>
> How would that be possible ?
>
> Thank you very much in advance,
> Best,
> Harold
>
>
>
>


Re: first letter with Lyx: some questions

2014-09-20 Thread Benedict Holland
Hi,

You want to use komascript2. http://wiki.lyx.org/Examples/KomaLetter2

You also want to look up how to modify the .lco files from koma. This is
the "local" file which will determine different margins. This is not
trivial to do and I found that is requires a great amount of tinkering to
get exactly what I wanted. I am attaching a modified DIN.lco which is
located somewhere on your computer. This really determines where everything
is located on a page.

I also found that I did have to use some ERT, particularly for the logos
but also to get text at the very bottom of the page using a Post Scriptum.

So to answer your questions... yes. You can use Lyx to get what you want.
Chances are something exists to get what you want but bare in mind that
this is highly customizable. If you want a different looking letter from
the defaults, that will require some time and playing around to make work.
The end result is fantastic though, particularly if you are doing multiple
letters. All you have to do is format it once and you can make as many
letters as you want.

~Ben

On Sat, Sep 20, 2014 at 10:49 AM, Renato Pontefice <
renato.pontef...@gmail.com> wrote:

> Hi,
> I'm trying to use Lyx, for my first document.
> what I need to do is a simple letter, but I need:
> - kind of letterhead, I mean: logo (image on the top left of the letter)
> - footer (a table with 3 cells containing text)
>
> - date aligned on the right
> - body of letter
>
> I've try to use Kaoma and letter (.lyx)
> I've seen that I can see the latex source, but I don't know how to modify
> it.
>
> I'm wondering if, is this the right way to use lyx, or if I'm trying to
> use it in a wrong way. I mean:
> - Do I'm trying to do something that I can do just with LaTeX editor? Or
> Lyx can be modified in many ways?
>
> -Finally, I'm wondering if do already exist somethings that do what I want
> to do.
>
> TIA
>
> Renato
>


DINregular.lco
Description: Binary data


Re: Lyx and references

2014-09-18 Thread Benedict Holland
I do not know any Croatian first of all.

The issue that you are having is that Lyx uses a 3rd party software (bibtex
by default but biblatex is much better particularly for you) to generate
references. It is taking whatever you have in your JabRef .bib file,
formatting it, and placing it into your Lyx document. Lyx will not touch
the text within the bibliogrophy. The text also has to be valid tex code so
any ampersand and dollar sign needs to be escaped . That is why you need to
look to biblatex. Biblatex will also handle unicode natively and has great
multilanguage support. Once you have biblatex working within your Lyx
document and after you have read the biblatex documentation, I think you
would be best served by emailing that listserve.

I hope this helps,
~Ben

On Thu, Sep 18, 2014 at 10:07 AM, stefano franchi  wrote:

>
>
> On Thu, Sep 18, 2014 at 7:40 AM, Jim Oldfield  > wrote:
>
>> I believe it depends on what bibliography style you're using. For dcu, at
>> least, you can change "and" by adding the following to your preamble:
>>
>> \renewcommand{\harvardand}{i}
>>
>> However, for "et al." and "in" (used for articles in collections) you
>> would
>> need to edit the style file. Note that "et al." is Latin, not English, so
>> depending on the conventions used in Croatian you may not need to change
>> it.
>> (In English you occasionally see "and others" used in citations, but it is
>> quite rare.)
>>
>> All the above is about natbib. I don't know anything about biblatex or
>> biber.
>>
>> > -Original Message-
>> > From: lyx-users@lists.lyx.org [mailto:lyx-users@lists.lyx.org] On
>> Behalf
>> Of
>> > Goran Kardum
>> > Sent: 18 September 2014 12:25 PM
>> > To: lyx-users@lists.lyx.org
>> > Subject: Lyx and references
>> >
>> > Hi,
>> > I looked at introduction about Bibliographies and Bibtex in LyX using
>> JabRef .
>> > During last several months I try to write manuals for students and also
>> the
>> > book in Lyx. But, I have a problems in Croatian language especially with
>> > bibliography. I'm trying to solve a problem that occurs by inserting
>> references
>> > in Lyx with two or more authors. I have changed the language setting in
>> my
>> > lyx document to Croatian but my in-text citations still read e.g.
>> (Sheppard and
>> > Jones, 2014) but I must have in Croatian (Sheppard i Jones, 2014).
>> Instead
>> of
>> > 'and' must have 'i'.
>> > Also another example with three and more authors:
>> > (Gray et al., 2010) I must have (Gray i sur., 2010).
>> > How can I set that Lyx automatically detect and change from English to
>> > Croatian? I used JabRef and APA style.
>> > Is it possible to resolve the problem with biblatex or biber?
>>
>
> Biblatex allows you to customize all the usual bibliography strings,
> including "and"  and the "et al." ("and" and "andothers" in biblatex
> parlance).
> Usually all these strings come in an .lbx file specific to the language
> you are using. There is a croatian.lbx file in texlive's standard
> distribution of biblatex, and it has the following two translation for
> "and" and "andothers"
>
>   and  = {{i}{i}},
>   andothers= {{i drugi}{i dr\adddot}},
>
> So it looks like the author of croatian.lbx has a different opinion on how
> to translate "et al." I speak no Croatian, and can't say if she is correct.
>
> You can force biblatex to use your system-provided croatian.lbx file by
> passing the option language=croatian when you call biblatex (even though it
> should do so automatically if you use babel/polyglossia and specify the
> document's language as croatian).
>
> A full explanation of Biblatex's multilanguage capabilities is in the
> manual, look especially at sections 3.8 and 4.9. You will also find
> explained how to provide localized translations for  your document only
> (instead of system-wide).
>
>
> Notice that if you switch from bibtex to biblatex (in LyX) you need to
> call biblatex from the preamble--there is only partial support for biblatex
> at the moment. LyX's wiki page on biblatex explain how to set it up. I have
> been using biblatex exclusively for a few years now and it works well with
> LyX, once you get into the habit of following the wiki's instructions.
>
>
> Cheers,
>
> Stefano
>
>
>
>
> --
> __
> Stefano Franchi
>
> stefano.fran...@gmail.com 
> http://stefano.cleinias.org
>


Re: How to insert footnote in bibliography

2014-08-10 Thread Benedict Holland
Yea, I was just going to say to do this. I have a quick word of warning
though. I think that biblatex and bibtex will take whatever .bib file you
have as valid latex code. I just remembered it because I personally think
this is a completely ridiculous thing to do but suffice to say, I know that
biblatex will treat your text as latex in your references. I am unsure
about bibtex but if you can use a reference manager to get a
\footnote{blah} printing from a reference, I suppose that it has a use
case. Fantastic solution though.

Thanks,
~Ben


On Sun, Aug 10, 2014 at 3:37 PM, William Seager 
wrote:

> On Sunday, August 10, 2014 20:42 Rainer M Krug wrote:
> > have you tried to
> > enter the footnote directly in the reference, i.e. \footnote{An example
> > footnote.}
>
> !! got it in one!  That works almost perfectly. The only problem is
> that it continues the numbers from previous ch. but that is
> not hard to fix. thanks
> --
> William Seager
> University of Toronto Scarborough
> http://www.utsc.utoronto.ca/~seager
>


Re: defective rendering of table in PDF

2014-08-04 Thread Benedict Holland
I really do not typically recommend that you learn Latex this but in this
specific situation, I have not found a great way to use Lyx. Tables in
Latex are trivial to set up. They are also fully customizable and once you
get use to them, they are really easy to write well. Tables is the single
thing I can only recommend that you just learn how to write in Latex. It
removes lots of problems.

~Ben


On Mon, Aug 4, 2014 at 8:57 PM, Enrico Forestieri  wrote:

> Will Parsons writes:
> >
> > Scott Kostyshak wrote:
> > >
> > > Hi Will,
> > >
> > > Thanks for the report. This does indeed seem like a LyX bug. Borders
> > > are tricky to get right. Can you write instructions for how to
> > > reproduce the table? Did you do it in LyX or did you import a .tex
> > > file?
> >
> > I created it in LyX.  I don't know if I can recreate the steps I took,
> > but I'll see if I can.
> >
>
> I don't know whether this is really a LyX bug or not, but you can
> workaround the issue as follows:
>
> 1) Put the cursor just before the table and enter in ERT the following:
>{\def\hline{\cline{1-4}}
> 2) Put the cursor just after the table and again enter in ERT:
>}
>i.e., a single closing brace that pairs with the first one above.
> 3) The table should now typeset correctly.
>
> The opening and closing braces limit the scope of the redefintion
> of \hline to that single table. If you have other tables, you will
> have to repeate the procedure for each one of them, maybe adjusting
> the argument of \cline if they have a different number of columns.
>
> HTH
>
> --
> Enrico
>
>
>
>


Re: svg graphic import in Lyx

2014-07-13 Thread Benedict Holland
I strongly encourage you to turn the SVG into a PS, EPS, or PDF file. I
think somewhere is the documentation is states that for SVG to correctly
work within the document is requires inkscape. Not at all a problem,
inkscape is one of the best vector editors out there but it is required as
Guenter stated.

~Ben


On Sun, Jul 13, 2014 at 6:00 AM, Guenter Milde  wrote:

> On 2014-07-12, Wolfgang Engelmann wrote:
> > Hello,
> > a svg graphic can apparently be imported into a Lyx document. However,
> > it seems it is converted into bitmap if exported eg by pdflatex. Is that
> > true?
>
> This depends on the installed converters. With e.g. inkscape installed, it
> is converted to pdf. Bitmap is the fallback.
>
> You may have a look at the configuration log.
> More detail about SVG images in LyX should be available in the wiki.
>
> Günter
>
>


Re: Beamer and Lyx

2014-07-13 Thread Benedict Holland
Is is possible to install a 2.1 version? There are a ton of bug fixes
between 2.0.X and a 2.1.X version. If that doesn't work, you might not have
the beamer file installed but I would try upgrading first.

http://www.lyx.org/Download

~Ben


On Sun, Jul 13, 2014 at 11:37 AM, Mikhail Salganik  wrote:

> Dear all,
>
> I downloaded version 2.07 of Lyx into Windows 8.1.  The Beamer Layout
> in the Document Settings is marked as unavailable.
>
> Is there any way to overcome this problem without leaving windows 8?
>
> Thank you.
>
> Misha Salganik
>
>


Re: Convert vector graphics to bitmap

2014-07-09 Thread Benedict Holland
I still don't buy that. You send a printer a PDF. That is a vector graphic
document. You send it to them in a PDF so it prints exactly what you give
them. Yes, professional printers are different than home printers. They are
far more complex and yes, I did have a problem with converting from RGB to
CMYK which was their huge problem. I have never heard of a printer
rejecting a vector based image. They crave these things because no matter
the resolution or size, it will always print out beautifully. The printer
doesn't know or care about what your picture means or represents. What the
printer cares about is that they print exactly what you gave them. It
should look exactly the same on the screen (apart from color because RGB ->
CMYK is not even sort of possible to do well). If you hand them a 8.5x11
piece of paper with your plot on it in a PDF form and you open that form in
Adobe, they should easily print out exactly that image that you see on the
screen. In all seriousness, if they cannot do that, you might try to find a
new printer. It shouldn't matter what format the image is in. Vector based
graphics are how printers print. It converts your bitmap into a PS image
and the printer uses a modified PS file to print your image on the paper.
This is why I am so incredibly confused by all of this. Not only that,
Adobe makes all of the products that printers use. InDesign hooks up to the
highest end HP machines you have ever seen and uses their own custom layout
crap to send your document to the printer. Bitmaps should never be used in
professional printing, ever.

If they have a grievous conversion fault, it is on the printer to make
whatever software they are using print whatever image you give them and
have that image look the same on paper as it does in the document. That is
their only job. Easier said than done but I don't buy that printers don't
know how to convert or deal with vector based images.

I actually finished up a massive job with a small printer about 3 months
ago and have way more experience than I should with this. Their flattening
tool didn't take to my document so I had to convert everything manually to
CMYK to make sure that the colors and images printed correctly. Thankfully,
image magic does vector based color transformations quite well. Their PDF
-> PNG transformation is horrible but a PDF (RGB) -> PDF (CMYK) is actually
quite good. It isn't perfect because that transformation cannot be done
exactly, but it does do a decent job. I really don't mean to harp on this
like I have been but really, it is the job of your printer to make whatever
you gave them work and there should be no problem printing out vector
images.

~Ben


On Wed, Jul 9, 2014 at 11:25 AM, Helge Hafting 
wrote:

> On 23. juni 2014 11:16, Christian W wrote:
>
>> The document contains a larger number of images. As these are results from
>> scientific computations, they contain a large number of details. This
>> allows
>> the user to zoom deep into the image when viewing the document on screen.
>> However, in the printed version it is obviously not possible to resolve so
>> many details. The publisher claims this may result in unexpected
>> appearance
>> of the images during the printing process. I am not sure about the
>> technical
>> reasons and differences of book printing to regular home printers, but he
>> asked me to provide bitmap based graphics instead.
>>
>
> Too fine detail will be lost - that is obvious. The interesting part is
> how. If a single pixel contains some white and some black due to fine
> detail - what should happen? Black pixel? White? Gray pixel? (Gray might
> not be possible). And when many such pixels make up a region - will the
> whole region be white/black? Or a dithering pattern? Aliasing effects?
>
> Their press might do this reduction a bit different than your home
> printer, hence the warning about surprises. They are publishers, not
> experts in your field. So they might not understand your computed images.
> So they cannot tell a "bad" conversion form a "good" one. which is why they
> tell you to make bitmaps in the native resolution of their imager. They can
> then print exactly what they get, no surprises. You get full control of the
> conversion process, and can review each image. If some are bad, you can use
> different parameters or different software to process them. You don't want
> the first edition to print with some griveous conversion fault - and they
> don't want that either.
>
>


Re: Table

2014-06-25 Thread Benedict Holland
Yes but you need to set the column width manually.

http://en.wikibooks.org/wiki/LaTeX/Tables

Check out the sections for m, p, and c.

What is happening is your header in the top row is defining your column
width. Those two strings are different lengths. I do not know if it is
possible in Lyx to use the p, m, and c column types. I assume it is but I
have no idea how to make that work. Tables are one of the very few cases I
have found where using raw Latex is far superior than Lyx and I don't want
to start a flame war with that statement but tables are extremely complex
to lay out and there are many many options.

~Ben


On Wed, Jun 25, 2014 at 1:57 PM, Patrick Dupre  wrote:

> Hello,
>
> In the attached file, is there a way to have the size of the 2 columns
> k_{uni} and \sigma_{k_{uni}} of "Standard error weighted"
> identical?
> IE when the size of the 2 columns is less than the size of the full
> multi-column.
>
> 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
> ===
>


Re: Convert vector graphics to bitmap

2014-06-22 Thread Benedict Holland
To understand why that shouldn't happen you actually have to understand
that you are specifically doing something which is both strange and
backwards. The reason that EPS, PS, and PDF files work so well with Latex
and Lyx is because PDFs are vector based graphics. Converting an EPS and a
PS document to PDF should have a 1:1 lossless conversion, theoretically.
There is an eps2pdf command which converts EPS and SVG files to PDF. There
is also a way to include a PNG file into a PDF.

Frankly, I am extremely confused by this thread. A PDF document is vector
based. If you are handing them a PDF to print, they shouldn't have any
issue printing a vector based document. If you are including an EPS within
a PDF, the conversion happens on the backend to make the EPS into a PDF so
it is very easily included within the document. PNG images are raster based
and need to be converted into a vector to be included within a PDF, or at
least that is what I have read. There are libraries which will do this such
as graphicx. Note that the PNG is converted into a vector based system and
then included within the PDF document or it is used natively somehow and
then a vector image is the result (PDF).

Does this make sense? Perhaps I am just missing something but printers
should love vector based graphics. Mine does.
~Ben


On Sun, Jun 22, 2014 at 4:37 PM, Christian W 
wrote:

> Thank you both for your comments. Is there a way to do the conversion
> directly in Lyx, i.e. while lyx is generating the PDF output, not as a
> shell
> command? Lyx can convert many image formats on the fly - maybe this feature
> can be used to detect and convert EPS to PNG? That would be easier to
> handle
> than converting everything beforehand.
>
>


Re: Convert vector graphics to bitmap

2014-06-22 Thread Benedict Holland
Make sure though that if you chose ImageMagic that you are getting results
that you can live with. In many of my attempts to use it resulted in
horrible outputs. I use something called Poppler

http://superuser.com/questions/185880/how-to-convert-a-pdf-document-to-png

BTW. If you search for "convert pdf to png" you can find dozens of answers.

~Ben


On Sun, Jun 22, 2014 at 11:45 AM, Wolfgang Engelmann <
engelm...@uni-tuebingen.de> wrote:

>
> Am 22.06.2014 17:38, schrieb Wolfgang Engelmann:
>
>
> Am 22.06.2014 17:07, schrieb Christian W:
>
> Is there a way in Lyx to automatically convert all eps and pdf vector
> graphics to PNG bitmap format? For printing, my publisher asked me to
> provide a PDF file without vector graphics as this might cause some
> problems. Instead they asked me to convert all vector graphics to PNG
> format
> with 600 dpi resolution. I am using pdflatex in Lyx to genreate the final
> pdf document.
>
>  Strange, that a publisher is apparently nowadays not able to do this
> conversion himself
> |convert -density 600 in.eps out.png
> |Wolfgang
>
>  p.S.
> if you want to convert many in a go, look at
> http://scott.sherrillmix.com/blog/programmer/converting-eps-to-png-easily/
>
> where it says:
> Converting many files at once is where ImageMagick really shines. The
> mogrify command is probably the quickest option. For example, to convert
> the files image01.eps, image02.eps and image03.eps to png, just use the
> command mogrify -format png image*.eps. In one shot, it will create
> image01.png, image02.png and image03.png.
>
> Unfortunately, recent version of Imagemagick seem to be treating eps to
> png conversions oddly (see below) so mogrify isn't cutting it on my files.
> If you have similar trouble (and you're on Unix or Mac or Cygwin), you can
> just use a bit of Bash combined with the convert command to get around
> the problem like this:
> BASH:
>
>1. for f in `ls *.eps`; do
> 2.  convert -density 100 $f -flatten ${f%.*}.png;
> 3. done
>
>   Wolfgang
>


Re: Convert vector graphics to bitmap

2014-06-22 Thread Benedict Holland
More to the point, why is a publisher unable to print a PDF? That seems
incredibly suspicious as someone who has worked with printers. There are
also lots of applications which will do this conversion. Inkscape and gimp
come to mind.

~Ben


On Sun, Jun 22, 2014 at 11:38 AM, Wolfgang Engelmann <
engelm...@uni-tuebingen.de> wrote:

>
> Am 22.06.2014 17:07, schrieb Christian W:
>
> Is there a way in Lyx to automatically convert all eps and pdf vector
> graphics to PNG bitmap format? For printing, my publisher asked me to
> provide a PDF file without vector graphics as this might cause some
> problems. Instead they asked me to convert all vector graphics to PNG format
> with 600 dpi resolution. I am using pdflatex in Lyx to genreate the final
> pdf document.
>
>
>  Strange, that a publisher is apparently nowadays not able to do this
> conversion himself
> convert -density 600 in.eps out.png
> Wolfgang
>


Re: Shaded Tables?

2014-06-21 Thread Benedict Holland
I got some excellent feedback yesterday about this actually. So I don't
expect people to rush out and buy books but let me clarify a bit. Booktabs
is a latex library which produces publication quality tables. It is free.
The PDF takes about 10 minutes to read to get the problems faced when
designing and developing tables.

http://www.ctan.org/tex-archive/macros/latex/contrib/booktabs/
http://mirrors.ibiblio.org/CTAN/macros/latex/contrib/booktabs/booktabs.pdf

There are also 4 books by Tufte which go into great detail about how to
build and design tables, charts, and graphs which are both beautiful and
not misleading. In summary of all of this work, you don't want to use
background color at all on tables. John got it correct. It puts a
subconscious grouping on tables and we really want to see what the
highlighted or different sections have in common. Horizontal lines CAN help
with this but typically a horizontal line separates sections in a table
like if you had two types of variables (endogenous with IV, exogenous). Too
many horizontal lines make the table blurred and difficult to read.
Vertical lines do exactly what you do not want to do: they break the
movement of your eyes going across the row. This might be what you want if
you have a set of values vertically defined however. It will "package" them
for you.

Basically, what all of this literature shows is that spacing is very
important in tables. Shading is completely unnecessary. The proper use of
whitespace and typesetting will produce a table which is easily readable no
matter the size. Of course, if you have a multipage table which spans the
entire length with 5 columns, that will take more white space to look
correct than if you have a simple 2 column table. The point of buffering
the rows with whitespace is to basically create lines of white such that
each row is clearly defined. That also means that the column width is
important too. If your column width is too wide and there is too much
buffering on the cells, it would like a checkerboard of all white squares
with tiny pieces inside. The columns are too defined relative to the rows
so the column widths must be shrunk.

http://konigi.com/notebook/zebra-striping-does-it-really-help

I am sort of harping on this issue because this comes up so much in
academic presentations and papers. I figured this audience, more than most,
will be focused on typesetting and care about the readability of extremely
complex tables. Zebra striping is quite bad and is easily solved with
proper typesetting. For this original posters example, I would be willing
to show a small sample of the zebra striped default against a typeset
booktabs with good spacing. Perhaps that might convince people. This issue
is also quite complex. It involves human perception, cognition, and
readability. BTW, if you really want some boring in your life, read about
typesetting. Those books are tedious as hell. Tufte is always fun and
hopefully I have summarized enough so you don't have to buy the books.

Thanks,
~Ben


On Sat, Jun 21, 2014 at 9:35 AM, John Kane  wrote:

> Just to throw in my 2 cents.
>
>
> [/quote]
>  I'm a fan of putting a thin dotted or light-colored line below every
> third row in the table (as at left, in the above image) for two reasons:
>
> When scanning across rows, the reader can keep his place by using
> the position of the line as a point of reference. Each row either has a
> line directly above it, below it, or has no line adjacent to it.
> [/unquote]
>
> This, to me has the implication that each three line section is a grouping
> so that I might want to compare the first three lines against the next
> three lines or the last three lines and so on.
>
> It seems to be introducing an unintended structure to the data in the
> table.
>
> P.S I like booktabs :)
>
>
> On 20 June 2014 12:27, Benedict Holland 
> wrote:
>
>> So now we are getting into type settings and visual aids and what is
>> easier for us to read. I would argue that highlighting every 3rd row should
>> place special emphasis on that row for some strange reason. Your eyes will
>> naturally shift to the different row.
>>
>> The reasons to not zebra stripe are numerous but here it is condensed.
>> Dark background and dark text is extremely hard to read. A different
>> background highlights rows naturally. The table should be a graphic in an
>> of itself. You should not add any color to make your statements.
>>
>> I have written extremely large and complex tables, for presentations no
>> less, and you never should use zebra stripes or that period thing. What you
>> should do is make sure your column widths are correct and your data is
>> spaced such that a row reads like a book. There are obvious column spaces
>> and it should be clear what the header for that

Re: Biber produces errors where bibtex8 does not

2014-06-21 Thread Benedict Holland
Which begs the question why are they not automatically escaped? I have a
bibliography of over 70 references. Getting an item error because there is
a problem in my references which has an easy workaround but hours of work
tracing it to the source is bad. Can lyx or biber do preprocessing to fix
these bugs?

Thanks,
~Ben
On Jun 21, 2014 3:53 AM, "Jürgen Spitzmüller"  wrote:

> 2014-06-20 23:47 GMT+02:00 Benedict Holland:
>
>> So it appears that the reason is that biber does not escape the abstract
>> of a reference, even if it doesn't at all display that abstract.
>> Specifically this is occurring if a percentage sign is within the abstract.
>> Apparently all percentage signs must be escaped? Is this a bug with lyx or
>> with biber?
>>
>
>
> Actually, I wonder why bibtex8 does not choke on this. These kind of
> characters need to be escaped in general.
>
> Jürgen
>
>


Re: Biber produces errors where bibtex8 does not

2014-06-20 Thread Benedict Holland
So it appears that the reason is that biber does not escape the abstract of
a reference, even if it doesn't at all display that abstract. Specifically
this is occurring if a percentage sign is within the abstract. Apparently
all percentage signs must be escaped? Is this a bug with lyx or with biber?

~Ben


On Fri, Jun 20, 2014 at 5:21 PM, Benedict Holland <
benedict.m.holl...@gmail.com> wrote:

> Hello,
>
> I tried using biber and biblatex following the instructions here:
>
> http://wiki.lyx.org/BibTeX/Biblatex
>
> I received some very strange errors like "Lonely \item - perhaps a missing
> list environment" when some of my references were included. It was actually
> 2/35 which were throwing the error except the error wasn't anywhere near
> those references. Even so, there was nothing wrong with the references and
> they worked perfectly well when generated using bibtex8. I examined the two
> references which caused problems and they were exactly the same as any
> other reference. Again, they work in bibtex8 but not biber.
>
> Does anyone know what could cause this error? When these two references
> are removed the document compiles but I need these references.
>
> ~Ben
>


Biber produces errors where bibtex8 does not

2014-06-20 Thread Benedict Holland
Hello,

I tried using biber and biblatex following the instructions here:

http://wiki.lyx.org/BibTeX/Biblatex

I received some very strange errors like "Lonely \item - perhaps a missing
list environment" when some of my references were included. It was actually
2/35 which were throwing the error except the error wasn't anywhere near
those references. Even so, there was nothing wrong with the references and
they worked perfectly well when generated using bibtex8. I examined the two
references which caused problems and they were exactly the same as any
other reference. Again, they work in bibtex8 but not biber.

Does anyone know what could cause this error? When these two references are
removed the document compiles but I need these references.

~Ben


Re: Shaded Tables?

2014-06-20 Thread Benedict Holland
So now we are getting into type settings and visual aids and what is easier
for us to read. I would argue that highlighting every 3rd row should place
special emphasis on that row for some strange reason. Your eyes will
naturally shift to the different row.

The reasons to not zebra stripe are numerous but here it is condensed. Dark
background and dark text is extremely hard to read. A different background
highlights rows naturally. The table should be a graphic in an of itself.
You should not add any color to make your statements.

I have written extremely large and complex tables, for presentations no
less, and you never should use zebra stripes or that period thing. What you
should do is make sure your column widths are correct and your data is
spaced such that a row reads like a book. There are obvious column spaces
and it should be clear what the header for that column is. In addition,
each row should be spaced such that whitespace is a natural bar. You should
be able to look at the table from first to last column and have your eye
not waver to the next row. This might mean you have to have quite large
white space between rows and that is fine. All bars should be avoided. They
are unnecessary but worse, they are a distraction. BTW, getting a table to
look good always takes me several hours. Every table is different. Tables
for presentations are even harder. Play with your spacing to make the table
speak for itself without relying on color. Try it out. It will surprise
you.

This is what Tufte argues and more importantly almost, booktabs. Booktabs
makes decent tables with the defaults. Read that document.

~Ben


On Fri, Jun 20, 2014 at 11:42 AM, Daniel CLEMENT 
wrote:

> Le vendredi 20 juin 2014 à 11:22 -0400, Benedict Holland a écrit :
> > Before you do this... read this article.
> > http://www.edwardtufte.com/bboard/q-and-a-fetch-msg?msg_id=0001IV
>
> On this page, I noticed the following comment:
>
> [/quote]
>  I'm a fan of putting a thin dotted or light-colored line below every
> third row in the table (as at left, in the above image) for two reasons:
>
> When scanning across rows, the reader can keep his place by using
> the position of the line as a point of reference. Each row either has a
> line directly above it, below it, or has no line adjacent to it.
> [/unquote]
>
> I couldn't state it better. This reminded me of a rather old book I was
> reading when I was young (Dungeons and Dragons manual...) with numerous
> tables. The background was alternately white and grey, but changed only
> every 3rd lines. So the zebra effect, if any, was not intrusive.
>
> I've always found it a example of good readability, for the reason
> explained above. However, the table has to be long enough, and it may
> look bad in photocopy.
> >
> > Zebra tables are almost always a bad idea. The correct way to solve
> > the problem is through typesetting and either avoiding or using
> > horizontal lines. You also should look at booktabs for some excellent
> > visual explanations. Basically, try your best to not do this. It is
> > quite hard for people to read and can be completely unavoidable. If
> > you think you need this solution, the problem is that your columns are
> > too wide for the data and there isn't enough spacing between your
> > rows.
> >
> >
> > ~Ben
> >
> >
> > On Fri, Jun 20, 2014 at 9:08 AM, Evan Langlois 
> > wrote:
> > Thanks guys.
> >
> >
> > Tom's suggestion worked great (except its ...
> >
> > \usepackage[table]{xcolor}
> >
> > not {color}).  Don't know how you found that!  PERFECT!
> >
> >
> >
> > Scott - Table 2.16 doesn't look like its shaded that way, and
> > trying to pull it up in PDF tells me that package babel has
> > unknown option ngerman and craps out on me.   Something
> > broken?  Bug or my config?
> >
> >
> >
> > -- Evan
> >
> >
> >
>
> --
> Daniel CLEMENT
>
>


Re: Shaded Tables?

2014-06-20 Thread Benedict Holland
Sorry, completely avoidable. Check out The books by Edward Tufte for some
excellent visuals and explanations about why they are so good.

~Ben


On Fri, Jun 20, 2014 at 11:22 AM, Benedict Holland <
benedict.m.holl...@gmail.com> wrote:

> Before you do this... read this article.
> http://www.edwardtufte.com/bboard/q-and-a-fetch-msg?msg_id=0001IV
>
> Zebra tables are almost always a bad idea. The correct way to solve the
> problem is through typesetting and either avoiding or using horizontal
> lines. You also should look at booktabs for some excellent visual
> explanations. Basically, try your best to not do this. It is quite hard for
> people to read and can be completely unavoidable. If you think you need
> this solution, the problem is that your columns are too wide for the data
> and there isn't enough spacing between your rows.
>
> ~Ben
>
>
> On Fri, Jun 20, 2014 at 9:08 AM, Evan Langlois 
> wrote:
>
>> Thanks guys.
>>
>> Tom's suggestion worked great (except its ...
>>
>> \usepackage[table]{xcolor}
>>
>> not {color}).  Don't know how you found that!  PERFECT!
>>
>>
>> Scott - Table 2.16 doesn't look like its shaded that way, and trying to
>> pull it up in PDF tells me that package babel has unknown option ngerman
>> and craps out on me.   Something broken?  Bug or my config?
>>
>> -- Evan
>>
>
>


Re: Shaded Tables?

2014-06-20 Thread Benedict Holland
Before you do this... read this article.
http://www.edwardtufte.com/bboard/q-and-a-fetch-msg?msg_id=0001IV

Zebra tables are almost always a bad idea. The correct way to solve the
problem is through typesetting and either avoiding or using horizontal
lines. You also should look at booktabs for some excellent visual
explanations. Basically, try your best to not do this. It is quite hard for
people to read and can be completely unavoidable. If you think you need
this solution, the problem is that your columns are too wide for the data
and there isn't enough spacing between your rows.

~Ben


On Fri, Jun 20, 2014 at 9:08 AM, Evan Langlois  wrote:

> Thanks guys.
>
> Tom's suggestion worked great (except its ...
>
> \usepackage[table]{xcolor}
>
> not {color}).  Don't know how you found that!  PERFECT!
>
>
> Scott - Table 2.16 doesn't look like its shaded that way, and trying to
> pull it up in PDF tells me that package babel has unknown option ngerman
> and craps out on me.   Something broken?  Bug or my config?
>
> -- Evan
>


Re: paper accepted for publication, but need help!

2014-06-12 Thread Benedict Holland
That is a fantastic point. Also I just found this.

http://wiki.lyx.org/BibTeX/Biblatex

I don't know enough about Lyx to start programing stuff for it yet but it
seems like pushing biber and biblatex as the default is about 15 years
overdue. If someone who knows far more about the Lyx codebase can ping me
or if this would be a great feature request, I would be willing to spend
some time on this. I ran into very similar problem with a name much like Jürgen
and I lost a few days trying to figure it out.

~Ben


On Thu, Jun 12, 2014 at 2:17 AM, Jürgen Spitzmüller  wrote:

> 2014-06-12 0:53 GMT+02:00 Benedict Holland:
>
> I think this is a problem with the default configuration, at least on
>> linux. You really need to use Bibtex8 for the bibliogrophy generation. This
>> is NOT the default. The default is bibtex which doesn't have any unicode
>> support because it actually was written in the 1980's. bibtex8 should
>> really be the default by now on any system. Also the language support in
>> lyx should default to utf-8. It would make life much easier to not have to
>> change these around so much and avoid these sorts of bugs. I also should
>> point out that pdflatex does an excellent job at catching these problems.
>> XeTex I think uses utf-8 by default which is why it worked when you
>> switched from pdflatex to XeTex.
>>
>
> Note that bibtex8 does not support unicode either (but only 8-bit
> encodings, as the name implies). There is one experimental unicode version
> of bibtex, bibtexu, but I do not think it works reliable enough already.
>
> For real unicode support, you must use biblatex with biber.
>
> Jürgen
>
>


Re: paper accepted for publication, but need help!

2014-06-11 Thread Benedict Holland
I think this is a problem with the default configuration, at least on
linux. You really need to use Bibtex8 for the bibliogrophy generation. This
is NOT the default. The default is bibtex which doesn't have any unicode
support because it actually was written in the 1980's. bibtex8 should
really be the default by now on any system. Also the language support in
lyx should default to utf-8. It would make life much easier to not have to
change these around so much and avoid these sorts of bugs. I also should
point out that pdflatex does an excellent job at catching these problems.
XeTex I think uses utf-8 by default which is why it worked when you
switched from pdflatex to XeTex.

~Ben


On Tue, Jun 10, 2014 at 7:57 AM, Jean-Marc Lasgouttes 
wrote:

> 10/06/2014 13:49, Neal Becker:
>
>  The problem is triggered by my .bib entry, which includes a non-ascii
>> character:
>>
>>author =  {Wojciech Bruzda and Wojciech Tadej and Karol
>> Życzkowski},
>>
>> By playing with lyx Document/Settings/Encoding, selecting unicode XeTeX
>> (utf-8),
>> I seem to be able to export dvi and then convert dvipdf OK.
>>
>> So is this a "good" procedure, or is something else recommended here?
>>
>
> You should use the same encoding for your document and the LyX output
> encoding. A workaround is to use LaTeX markup in the .bib file so that it
> is compatible with any encoding.
>
> JMarc
>
>


Re: How to include child documents in Lyx

2014-06-09 Thread Benedict Holland
http://flukylogs.blogspot.com/2009/09/install-style-files-in-lyx.html

The .sty file is your style file. It is used for formatting. The
sample_thesis.tex file is a raw latex file (presumably so you can test the
style to make sure you get the required output). You do not ever want to
include these. They are not for that. What you want to do is import the sty
file and make it into a document class. Then you want to edit the file in
lyx. The PDF that you generate should be the same format as the sample.

I don't think that this is a trivial amount of work to get working but it
isn't too much. What you want to search for in google is "lyx sty" and it
comes up with a mess of useful links.

~Ben


On Mon, Jun 9, 2014 at 3:46 PM, umair durrani 
wrote:

> I have asked this question on tex.stackexchange but got no answer so far. I
> am new to LaTeX and LyX. For writing my thesis I got 2 files from
> university: uw_masters_thesis.sty and sample_thesis.tex. The sample file
> contains \usepackage{uw_masters_thesis} in preamble. If I use LaTex I
> simply put both files in same directory and include child documents by
> using \include or \input in the sample_thesis.tex document.
> The embedded objects manual in LyX suggests to specify the Document Class of
> master document in child document. But in my case the document class is Report
> (Standard Class). In my understanding, what uses the style file is the
> \usepackage{uw_masters_thesis} in preamble.
> I am creating thesis chapters (child documents) in lyx without specifying
> any thing in Document Stettings. I want them to use the style provided by
> .sty file and finally include all of them in master document. How can I
> achieve this in Lyx. Please suggest a step by step solution.
>
>
> Umair Durrani
> Master's candidate
> Civil and Environmental Engineering
> University of Windsor
>


Re: error

2014-06-06 Thread Benedict Holland
Sorry about the last email. I tried a complex one from my phone and I
shouldn't have bothered. It is very possible that latex natively supports
.eps. I have found that converting an EPS to PDF and using that within Lyx
makes life much easier. I don't know if Lyx SHOULD work natively with EPS
or really PS files but I know that EPS to PDF is lossless. Both are vector
graphics. I also know that lyx natively works with PDFs as child documents.

I also read that unless you are using a PDF as an image, you have to
declare EPS as an extension. I don't know why. I also don't know how this
SHOULD work but I have used 5 different file formats extensively. What I
would suggest doing is converting the EPS to a PDF. I don't know why that
is a problem. Again, nothing should be lost in this transition. EPS to SVG
I know loses nothing and EPS to PDF, when I have done it, print exactly the
same. Does the program crash if EPS is declared as a valid graphics type?
If it doesn't crash and works, might I suggest just using it? If making the
EPS into a PDF also works and your document compiles, might I also suggest
using that? I don't think either fixes the core crash but if you can make
it work fairly easily, I would personally prefer to have a document work
with a minor hack than not have a document work at all.


~Ben


On Fri, Jun 6, 2014 at 2:01 PM, Benedict Holland <
benedict.m.holl...@gmail.com> wrote:

> That is quite
>
> Thanks,
> ~Ben
> On Jun 6, 2014 11:11 AM, "Patrick Dupre"  wrote:
>
>>
>>
>>
>> ===
>> 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
>>
>> =======
>>
>>
>>
>> Sent: Friday, June 06, 2014 at 4:25 PM
>> From: "Benedict Holland" 
>> To: "Steve Burnham" 
>> Cc: "Patrick Dupre" , lyx 
>> Subject: Re: error
>>
>> EPS files are not natively supported. The pdf created is a wrapper for
>> the EPS. Do you have the
>>
>> eps was originally the only supported graphic file format for latex,
>> isn't it?
>> Which would it not supported any more. To my knowledge, the editors still
>> like the eps files!
>>
>> \DeclareGraphicsExtensions{.pdf,.eps,png} %Allowed includegraphics
>>
>> Declared in the preamble? There are huge reasons to not use .jpgs in text
>> and an EPS should work. I know that this might be a huge pain, but if it
>> doesn't work, can you load it into something and save it as a pdf? A pdf
>> will work. I have had great luck with svg files as well but yes, you might
>> also have to spam the dev list.
>>
>> ~Ben
>>
>>
>>
>> On Thu, Jun 5, 2014 at 9:23 PM, Steve Burnham  wrote:
>>
>>
>> Sent: Thursday, June 05, 2014 at 9:08 PM
>> From: "Steve Burnham" 
>> To: "Patrick Dupre" , lyx <
>> lyx-users@lists.lyx.org[lyx-users@lists.lyx.org]>
>> Subject: Re: error
>>
>> On June 5, 2014 at 12:50:35 PM, Patrick Dupre (pdu...@gmx.com[
>> pdu...@gmx.com]) wrote:
>>
>>
>> Hello,
>>
>> Can somebody tell me what is wrong in this file?
>> There 2 issues,
>> with the figure and with the bibliography!
>>
>> Thank.
>>
>>
>>
>> ===
>> Patrick DUPRÉ | | email: pdu...@gmx.com[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 don’t know if this is an acceptable solution for you but when I convert
>> the .eps file to a .jpg and insert that instead it complies properly.  I’ve
>> attached the .jpg if you would like it.  I don’t see any problems with the
>> bibliography.
>>
>> -Steve
>> On June 5, 2014 at 15:09:08 PM, Patrick Dupre (pdu...@gmx.com[
>> pdu...@gmx.com]) wrote:
>>
>>
>> Hello,
>>
>> Why I need to use epstopdf
>> How can I avoid to use epstopdf. I have an eps file, there is not point
>> to convert it!
>>
>> Thank.
>>
>>
>> ===

Re: error

2014-06-06 Thread Benedict Holland
That is quite

Thanks,
~Ben
On Jun 6, 2014 11:11 AM, "Patrick Dupre"  wrote:

>
>
> ===
> 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
> ===
>
>
>
> Sent: Friday, June 06, 2014 at 4:25 PM
> From: "Benedict Holland" 
> To: "Steve Burnham" 
> Cc: "Patrick Dupre" , lyx 
> Subject: Re: error
>
> EPS files are not natively supported. The pdf created is a wrapper for the
> EPS. Do you have the
>
> eps was originally the only supported graphic file format for latex, isn't
> it?
> Which would it not supported any more. To my knowledge, the editors still
> like the eps files!
>
> \DeclareGraphicsExtensions{.pdf,.eps,png} %Allowed includegraphics
>
> Declared in the preamble? There are huge reasons to not use .jpgs in text
> and an EPS should work. I know that this might be a huge pain, but if it
> doesn't work, can you load it into something and save it as a pdf? A pdf
> will work. I have had great luck with svg files as well but yes, you might
> also have to spam the dev list.
>
> ~Ben
>
>
>
> On Thu, Jun 5, 2014 at 9:23 PM, Steve Burnham  wrote:
>
>
> Sent: Thursday, June 05, 2014 at 9:08 PM
> From: "Steve Burnham" 
> To: "Patrick Dupre" , lyx <
> lyx-users@lists.lyx.org[lyx-users@lists.lyx.org]>
> Subject: Re: error
>
> On June 5, 2014 at 12:50:35 PM, Patrick Dupre (pdu...@gmx.com[
> pdu...@gmx.com]) wrote:
>
>
> Hello,
>
> Can somebody tell me what is wrong in this file?
> There 2 issues,
> with the figure and with the bibliography!
>
> Thank.
>
>
>
> ===
> Patrick DUPRÉ | | email: pdu...@gmx.com[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 don’t know if this is an acceptable solution for you but when I convert
> the .eps file to a .jpg and insert that instead it complies properly.  I’ve
> attached the .jpg if you would like it.  I don’t see any problems with the
> bibliography.
>
> -Steve
> On June 5, 2014 at 15:09:08 PM, Patrick Dupre (pdu...@gmx.com[
> pdu...@gmx.com]) wrote:
>
>
> Hello,
>
> Why I need to use epstopdf
> How can I avoid to use epstopdf. I have an eps file, there is not point to
> convert it!
>
> Thank.
>
> ===
> Patrick DUPRÉ | | email: pdu...@gmx.com[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
> ===
>
>
>
> This is probably a question better suited for a LyX developer to answer
> but I would assume that unless you have used .eps files successfully before
> then LyX isn’t able to handle them and doesn’t know what they are.  I don’t
> know what operating system you are using but on OSX and Windows there are
> very simple to use screen capture tools where you can just open up the file
> and draw a box around the picture and it creates a .jpg file.  I run OSX
> and this is what I did with your file (Cmd+Shift+4).
>
> -Steve
>
>
>
>
>
>
>
>
>


Re: error

2014-06-06 Thread Benedict Holland
EPS files are not natively supported. The pdf created is a wrapper for the
EPS. Do you have the


\DeclareGraphicsExtensions{.pdf,.eps,png} %Allowed includegraphics


Declared in the preamble? There are huge reasons to not use .jpgs in text
and an EPS should work. I know that this might be a huge pain, but if it
doesn't work, can you load it into something and save it as a pdf? A pdf
will work. I have had great luck with svg files as well but yes, you might
also have to spam the dev list.


~Ben




On Thu, Jun 5, 2014 at 9:23 PM, Steve Burnham  wrote:

>
>
> Sent: Thursday, June 05, 2014 at 9:08 PM
> From: "Steve Burnham" 
> To: "Patrick Dupre" , lyx 
> Subject: Re: error
>
> On June 5, 2014 at 12:50:35 PM, Patrick Dupre (pdu...@gmx.com) wrote:
>
>
> Hello,
>
> Can somebody tell me what is wrong in this file?
> There 2 issues,
> with the figure and with the bibliography!
>
> 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 don’t know if this is an acceptable solution for you but when I convert
> the .eps file to a .jpg and insert that instead it complies properly.  I’ve
> attached the .jpg if you would like it.  I don’t see any problems with the
> bibliography.
>
> -Steve
>
> On June 5, 2014 at 15:09:08 PM, Patrick Dupre (pdu...@gmx.com) wrote:
>
>
> Hello,
>
> Why I need to use epstopdf
> How can I avoid to use epstopdf. I have an eps file, there is not point to
> convert it!
>
> 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
> ===
>
>
>
>
>
> This is probably a question better suited for a LyX developer to answer
> but I would assume that unless you have used .eps files successfully before
> then LyX isn’t able to handle them and doesn’t know what they are.  I don’t
> know what operating system you are using but on OSX and Windows there are
> very simple to use screen capture tools where you can just open up the file
> and draw a box around the picture and it creates a .jpg file.  I run OSX
> and this is what I did with your file (Cmd+Shift+4).
>
> -Steve
>
>
>
>
>
>
>
>
>


Re: erratic spacing between tables and figures

2014-06-05 Thread Benedict Holland
Yea. Check your floats. Make sure that they are marked as "here
definitely". Also you might want to add a \vfill before and after the
picture. Also, make your pictures bigger unless you can't but try to.
Bigger pictures are always better.

~Ben


On Thu, Jun 5, 2014 at 2:08 AM, Jürgen Spitzmüller  wrote:

> 2014-06-04 23:54 GMT+02:00 Steve Burnham:
>
> I have one last (hopefully) formatting issue to resolve with my thesis
>> before I can turn it back into the reviewers.  I am attempting to place
>> each table and figure on their own separate page.  The problem is I try
>> going to insert>formatting>new page and also page break in between the two
>> figures or tables but LyX seems to just ignore the command  and still
>> formats the two figures on the same page.  I have also tried going the ERT
>> route by adding both \pagebreak and \newpage but LyX also seems to ignore
>> those commands as well. What am I doing wrong?  I have a link for a zip
>> file with a minimal example that includes the needed class file as well.
>>
>
> Does this help?
>
> http://tex.stackexchange.com/questions/22191/forcing-a-figure-strictly-on-a-separate-page
>
> Jürgen
>
>


Re: Thesis formatting

2014-06-04 Thread Benedict Holland
Would you be willing to do this in ERT? I find that the first page, cover
page, etc. are notoriously difficult to get correctly specified in Lyx. The
ERT would be someting like
http://tex.stackexchange.com/questions/819/double-line-spacing

Also, it might be linebreak but I think it should be newline. Honestly, I
find that if I have to edit or modify class files and the like, I just find
a library to do it for me and write it up in latex. It seems to be much
easier that way.

\usepackage{setspace}
\begin{centering}
\doublespacing

Masters of Science \newline
in \newline
Nuclear Engineering \newline

\end{centering}

~Ben


On Wed, Jun 4, 2014 at 3:04 PM, Steve Burnham  wrote:

> On June 4, 2014 at 12:50:48 PM, PhilipPirrip (p...@net.hr) wrote:
>
> It's hard to guess what you're supposed to have without knowing anything
> about your latex class.
> What's obvious from the excerpt you've given is that \@degree is meant
> to be an internal command of the class (because of the @). There must be
> some part of the class file that fills the \@degree command with user's
> data.
>
> Where can we find the class file?
>
>
>
> I’m attaching the class file.  Starting at line 1351 is where I made my
> modifications.  I guess I don’t fully understand how to use the @ command.
>  It sounds like I have to define it first earlier in the class file before
> I can add it to my preamble to be defined?
>
> -Steve
>


Re: Spell check within ERT

2014-05-29 Thread Benedict Holland
Oh perfect! That is exactly the perfect solution!

Thank you so much. I never even knew this feature existed, particularly the
ability to configure my tex editor!
~Ben


On Thu, May 29, 2014 at 10:53 AM, Richard Heck  wrote:

> On 05/29/2014 09:20 AM, Benedict Holland wrote:
>
>>
>> Thank you for all the fine ideas. I will try to think about how to better
>> approach the problem. I suppose the huge feature request would be to make
>> ERT into an expansive latex or tex editor with defined functions like in an
>> editor such as MikTex. I don't have time right now to tackle the problem
>> but that seems like the not so hacky way to deal with it.
>>
>>
> If you're going to use huge ERT, then it would likely be better to have
> the LaTeX code in a separate file and include it using Insert> File> Child
> Document. This works with TeX files as well as LyX files. You can then
> right click on the inset and choose "Edit included file", which will open
> whatever program you configure under Tools> Preferences.
>
> Richard
>
>


Re: Spell check within ERT

2014-05-29 Thread Benedict Holland
So I so love how I specifically that tables are a problem and get people
wondering why I can't use lyx for tables. Imagine you have to get a table
of attributes all with starting with a letter and a period with a width of
.26in but no cellpadding on that particular column because it is left
justified and the extra .01in leaves just enough space for an m to look
good. This letter should appear as a block like

a. some text
some text

AND then there should also be another column with even more text. How about
if some rows contain multi column or multi row environments? How about if I
am importing from R and need to use long tables instead? That is a simple
copy and paste, chance tabular to longtable and continue on my way. Tables
are inherently difficult. Latex knows this which is why it says in many
many documents that tables are difficult. Lyx even admits that tables are
difficult but provides a UI to get some functionality. Regularly I hit that
wall and find it much easier to just use latex markup even with sometime
like using spaces between rows as oppose to lines (which is much better
design). I tried it once a long time ago. I couldn't make it do what I
wanted. Perhaps it is time to a revisit when things are not so hectic. I
use three part tables with booktabs because I need professional looking
tables to present scientific results. These tables need to be spell checked
because there is sometimes a lot of text embedded in them.


I am less worried about having too much spelling highlighted than too many.
I see two ways easily to get around the problem. The first is to have a set
of reserved or defined words. Other editors have figured out how to write
up latex code while having the display not underline every command. It is
also possible that they prescan for all defined words and don't highlight
them. I actually have not worked with document processors befores so I
don't know how language specific commands or other defined/reserved words
are not automatically recognized. A lot of other text editors do it though
so I can't imagine that to be difficult.

The second, and slightly more hacky way, would be to just add every
reserved word to my personal dictionary. It cannot be any more hacky then
writing the ERT, copying that into a new document, fixing spelling, and
copying it back. That is actually the exact situation I want to avoid. I
suppose a third option would be to use a non-ui like device to create
tables and then import the latex into lyx. I would prefer to not have to do
that though but it sounds like redefining ERT is sort of hacky.

Thank you for all the fine ideas. I will try to think about how to better
approach the problem. I suppose the huge feature request would be to make
ERT into an expansive latex or tex editor with defined functions like in an
editor such as MikTex. I don't have time right now to tackle the problem
but that seems like the not so hacky way to deal with it.

Thanks again,
~Ben


On Wed, May 28, 2014 at 10:18 AM, Richard Heck  wrote:

> On 05/28/2014 04:38 AM, Scott Kostyshak wrote:
>
>> On Tue, May 27, 2014 at 7:04 PM, Benedict Holland
>>  wrote:
>>
>>> Hi everyone. Yes, I did check the archived mail and no, I didn't find an
>>> answer. I am running lyx 2.1 and I need to spell check ERT. How can I
>>> make
>>> this happen?
>>>
>>> Before you ask, why he is still using ERT the answer is tables. I cannot
>>> make lyx do what I want with tables and I am not going to go through and
>>> remove each string from ert. That would make my document unreadable. So.
>>> How
>>> do I make lyx spell check within ERT?
>>>
>> Hi Benedict,
>>
>> You might be able to redefine ERT in local layout (Document > Settings >
>> Local layout). Please read about layouts and about the Spellcheck keyword
>> in Help > Customization. If redefining ERT doesn't work, consider making
>> your own inset that does the same thing as ERT except that it spell checks.
>>
>
> This is hardcoded in the case of ERT: allowSpellCheck() returns false. But
> yes, in principle, you could define your own ERT-like inset (PassThru 1,
> etc), and allow spell check inside it. You do then have the problem that
> Stephan mentioned, though.
>
> Richard
>
>


Spell check within ERT

2014-05-27 Thread Benedict Holland
Hi everyone. Yes, I did check the archived mail and no, I didn't find an
answer. I am running lyx 2.1 and I need to spell check ERT. How can I make
this happen?

Before you ask, why he is still using ERT the answer is tables. I cannot
make lyx do what I want with tables and I am not going to go through and
remove each string from ert. That would make my document unreadable. So.
How do I make lyx spell check within ERT?

Thanks,
~Ben