How to extract only used references from a bibtex file

2020-07-08 Thread list_email
I am preparing to send tex files, graphics files, etc. to a publisher. I think 
there should be a way to send something less than my entire bibtex file to 
them. Is there a way to easily extract only the references that I am using for 
this paper into a separate bibtex file or is there some other way to do this? I 
notice that when I compile the tex file (using Texnicle on MacOS) something 
called a .bbl file is generated that contains only my used references but is is 
different from a .bib file. I suppose this is best posted to a latex list. :-/

Jerry

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


Re: How to extract only used references from a bibtex file

2020-07-08 Thread Richard Kimberly Heck
On 7/8/20 9:33 AM, Jürgen Spitzmüller wrote:
> Am Mi., 8. Juli 2020 um 14:06 Uhr schrieb  >:
>
> I am preparing to send tex files, graphics files, etc. to a
> publisher. I think there should be a way to send something less
> than my entire bibtex file to them. Is there a way to easily
> extract only the references that I am using for this paper into a
> separate bibtex file or is there some other way to do this? I
> notice that when I compile the tex file (using Texnicle on MacOS)
> something called a .bbl file is generated that contains only my
> used references but is is different from a .bib file. I suppose
> this is best posted to a latex list. :-/
>
>
> Does one of these advises help?
> https://tex.stackexchange.com/questions/41821

There's also the simple tool aux2bib, which is in the bibtools package.
Just run it on your aux file.

If you have the option just to include the bibliography in the document,
then you can use the include_bib.py script that ships with LyX. Create a
new format LaTeX (With Bib). Mark it as a document format and check
"Show in export menu". Then make a converter from LaTeX (pdflatex) to
LaTeX (With Bib). Converter command is:

python -tt $$s/scripts/include_bib.py $$i $$o

and make the flag "needaux". You'll also want to make sure it is enabled.

Now you should be able just to export to this format, and the
bibliography will just be included in the document. No need for an
external bib file.

Riki


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


Re: How to extract only used references from a bibtex file

2020-07-08 Thread Jürgen Spitzmüller
Am Mi., 8. Juli 2020 um 14:06 Uhr schrieb :

> I am preparing to send tex files, graphics files, etc. to a publisher. I
> think there should be a way to send something less than my entire bibtex
> file to them. Is there a way to easily extract only the references that I
> am using for this paper into a separate bibtex file or is there some other
> way to do this? I notice that when I compile the tex file (using Texnicle
> on MacOS) something called a .bbl file is generated that contains only my
> used references but is is different from a .bib file. I suppose this is
> best posted to a latex list. :-/
>

Does one of these advises help?
https://tex.stackexchange.com/questions/41821

Jürgen


>
> Jerry
>
> --
> 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: Image paths when exporting from Lyx

2020-07-08 Thread muzzle
Hello everyone,
I have partially solved my previous issue
https://tex.stackexchange.com/questions/524505/image-path-when-exporting-from-lyx/552722#552722.


The one problem I have left is that lyx removes the image extension when
exporting to latex (when using the "nice" flag); this forces me to specify
the image extension in the pandoc command which is not very flexible. Do
you have any idea how to get lyx to output the image file name including
the extension?

Best,

Emme

On Tue, Jan 21, 2020 at 9:43 PM Scott Kostyshak  wrote:

> On Tue, Jan 21, 2020 at 04:40:06PM +0100, muzzle wrote:
> > Hello,
> >
> > I am trying to setup LyX to export directly to the reStructuredText
> format.
> > I adapted these instructions
> >  just replacing
> markdown
> > with rst.
> >
> > Unfortunately LyX changes the path of every image.
> >
> > e.g. this figure
> >
> > .. figure::
> 0_home_muzzle_Nextcloud_Stuff_Stuff_documentation_source_img_pressure.jpg
> >:alt: Pressure
> >:width: 80.0%
> >
> >Pressure
> >
> > should be
> >
> > .. figure:: img/pressure.jpg
> >:alt: Pressure
> >:width: 80.0%
> >
> >Pressure
> >
> > I think LyX is replacing the image path with that of a copy of the image
> > created to allow the converter to do its job. This is the correct
> behavior
> > if the output format will somehow embed the image in the document, but
> that
> > is not the case for reStructuredText (or for markdown, for that matter).
> >
> > If I export the lyx file as latex from the GUI, and then convert it to
> > reStructuredText using the command
> >
> > pandoc --wrap=none -f latex -t rst -o file.rst file.tex
> >
> > the image path is correct, is there a way to obtain the same effect from
> > the UI conversion and export system?
> >
> > Best,
> >
> > Emme
>
> Hi Emme,
>
> It's helpful to always cross-reference your posts. That way, if someone
> solves your question on one list, others with the same problem who find
> your other post can follow the link and see the solution. Here's your
> other post:
>
>
> https://tex.stackexchange.com/questions/524505/image-path-when-exporting-from-lyx
>
> I don't know the answer to you question but I hope someone else does!
>
> Best of luck,
>
> Scott
>

Thanks Scott,
In the maean while
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users