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
>


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: 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 <skost...@lyx.org> wrote:

> On Mon, Aug 31, 2015 at 4:16 PM, Benedict Holland
> <benedict.m.holl...@gmail.com> 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
>


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 sl...@troubleshooters.com
wrote:

 On Sun, 9 Aug 2015 18:05:07 + (UTC)
 Kevin Jones kevinpjon...@outlook.com 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: 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 rgh...@lyx.org 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 skost...@lyx.org wrote:

 On Sun, Aug 2, 2015 at 5:04 PM, Sajjad  dosto.wa...@gmail.com
 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-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 <rgh...@lyx.org> 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 <skost...@lyx.org> wrote:
>
>> On Sun, Aug 2, 2015 at 5:04 PM, Sajjad < <dosto.wa...@gmail.com>
>> 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 skost...@lyx.org 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 rshep...@appl-ecosys.com
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: 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 rshep...@appl-ecosys.com
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: 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 iank...@gmail.com 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: 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 iank...@gmail.com 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: 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 rgh...@lyx.org 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: 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 rgh...@lyx.org 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: 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 <rgh...@lyx.org> 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: 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 landronim...@gmail.com
wrote:

 On Thu, Jul 2, 2015 at 11:57 AM, Jean-Marc Lasgouttes
 lasgout...@lyx.org 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: 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 p...@net.hr 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 landronim...@gmail.com
wrote:

 On Thu, Jul 2, 2015 at 11:57 AM, Jean-Marc Lasgouttes
 lasgout...@lyx.org 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: 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 p...@net.hr 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: 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: 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 rgh...@lyx.org 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: 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 rgh...@lyx.org 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: 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 rvaci...@gmail.com 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:/ https://sites.google.com/site/opheimrichard/home
 /sites.google.com/site/opheimrichard/publishing-faq
 https://sites.google.com/site/opheimrichard/home

 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/
 https://url.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: 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 rvaci...@gmail.com 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:/ https://sites.google.com/site/opheimrichard/home
 /sites.google.com/site/opheimrichard/publishing-faq
 https://sites.google.com/site/opheimrichard/home

 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/
 https://url.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: 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 ndbeck...@gmail.com 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: 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 ndbeck...@gmail.com 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: 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
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 jrkrid...@gmail.com 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 id...@online.de wrote:

 On 03/20/2015 08:44 AM, Jerry wrote:

 On Mar 14, 2015, at 9:56 AM, Robert Susmilch rob...@susmilch.com
 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 c...@biomaps.rutgers.edu
 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 are no different in this respect than are numbered
 sections, etc.

 dave case

  Finally (I'll file a ticket for this in due course), a simple
 improvement of the current system would be to 

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 rob...@susmilch.com
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 jrkrid...@gmail.com 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 id...@online.de wrote:

 On 03/20/2015 08:44 AM, Jerry wrote:

 On Mar 14, 2015, at 9:56 AM, Robert Susmilch rob...@susmilch.com
 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 c...@biomaps.rutgers.edu
 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 are no different in this respect than are numbered
 sections, etc.

 dave case

  Finally (I'll file a ticket for this in due course), a simple
 improvement of the current system would be to 

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 rob...@susmilch.com
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 

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: 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 jezzi...@gmail.com 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 benedict.m.holl...@gmail.com
  5. Februar 2015 17:55
 In that case, can you post your call to biblatex located in the preamble?

 ~Ben


   jezZiFeR jezzi...@gmail.com
  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 benedict.m.holl...@gmail.com
  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 jezzi...@gmail.com
  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-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 jezzi...@gmail.com 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 benedict.m.holl...@gmail.com
  5. Februar 2015 17:55
 In that case, can you post your call to biblatex located in the preamble?

 ~Ben


   jezZiFeR jezzi...@gmail.com
  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 benedict.m.holl...@gmail.com
  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 jezzi...@gmail.com
  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-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 <jezzi...@gmail.com> 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 <benedict.m.holl...@gmail.com>
>  5. Februar 2015 17:55
> In that case, can you post your call to biblatex located in the preamble?
>
> ~Ben
>
>
>   jezZiFeR <jezzi...@gmail.com>
>  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 <benedict.m.holl...@gmail.com>
>  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 <jezzi...@gmail.com>
>  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 jezzi...@gmail.com 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 benedict.m.holl...@gmail.com
  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 jezzi...@gmail.com
  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 jezzi...@gmail.com 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 benedict.m.holl...@gmail.com
  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 jezzi...@gmail.com
  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 <jezzi...@gmail.com> 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 <benedict.m.holl...@gmail.com>
>  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 <jezzi...@gmail.com>
>  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 jezzi...@gmail.com 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: 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 jezzi...@gmail.com 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: 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 lancebo...@qwest.net 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-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 lancebo...@qwest.net 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-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 <lancebo...@qwest.net> 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
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 dan...@gmail.com 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: 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}{lm{.25cm}...}
Your output here
\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 dan...@gmail.com 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

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 dan...@gmail.com 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: 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}{lm{.25cm}...}
Your output here
\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 dan...@gmail.com 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

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: 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 <dan...@gmail.com> wrote:
>
>>  There is a pa

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 adharesh...@hotmail.com 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
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 adharesh...@hotmail.com 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 adharesh...@hotmail.com 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
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 adharesh...@hotmail.com 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: 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 <adharesh...@hotmail.com> 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 helge.haft...@hist.no 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: 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 helge.haft...@hist.no 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: 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
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: 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 stefano.fran...@gmail.com
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 stef...@tamu.edu
 http://stefano.cleinias.org



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 renato.pontef...@gmail.com 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
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 jri...@lyx.org 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: 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: 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 stefano.fran...@gmail.com
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 stef...@tamu.edu
 http://stefano.cleinias.org



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 renato.pontef...@gmail.com 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
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 jri...@lyx.org 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: 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: 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: 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
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: 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: 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: 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: 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


  1   2   >