From: Georg Baum Date: Thu, 3 Feb 2005 14:20:19 +0000 (+0000) Subject: handle includegraphics* X-Git-Tag: 1.6.10~14580 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=76b8d1b25f7de8b94b82de0884beb05e36caaaa4;p=lyx.git handle includegraphics* git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9579 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/tex2lyx/ChangeLog b/src/tex2lyx/ChangeLog index 78b28a935b..3aed7b96cb 100644 --- a/src/tex2lyx/ChangeLog +++ b/src/tex2lyx/ChangeLog @@ -1,3 +1,7 @@ +2005-02-03 Georg Baum + + * text.C (parse_text): handle \includegraphics* + 2005-02-02 Angus Leeming * Makefile.am: remove -lz library from the linker call. diff --git a/src/tex2lyx/text.C b/src/tex2lyx/text.C index 9b2d8096f8..312ddbf99b 100644 --- a/src/tex2lyx/text.C +++ b/src/tex2lyx/text.C @@ -1168,7 +1168,12 @@ void parse_text(Parser & p, ostream & os, unsigned flags, bool outer, } else if (t.cs() == "includegraphics") { + bool const clip = p.next_token().asInput() == "*"; + if (clip) + p.get_token(); map opts = split_map(p.getArg('[', ']')); + if (clip) + opts["clip"] = string(); string name = subst(p.verbatim_item(), "\\lyxdot ", "."); string const path = getMasterFilePath();