From fc13d7b81441839fd54fc36626e11e63892806ab Mon Sep 17 00:00:00 2001 From: =?utf8?q?Uwe=20St=C3=B6hr?= Date: Wed, 5 Nov 2014 00:42:35 +0100 Subject: [PATCH] graphicboxes.module: new module support for the 4 boxes provided by the LateX package graphicx --- lib/Makefile.am | 1 + lib/layouts/graphicboxes.module | 78 +++++++++++++++++++++++++++++++++ 2 files changed, 79 insertions(+) create mode 100644 lib/layouts/graphicboxes.module diff --git a/lib/Makefile.am b/lib/Makefile.am index eb2ee4dd0e..e70b5cd0e2 100644 --- a/lib/Makefile.am +++ b/lib/Makefile.am @@ -1982,6 +1982,7 @@ dist_layouts_DATA =\ layouts/frletter.layout \ layouts/g-brief.layout \ layouts/g-brief2.layout \ + layouts/graphicboxes.module \ layouts/hanging.module \ layouts/heb-article.layout \ layouts/heb-letter.layout \ diff --git a/lib/layouts/graphicboxes.module b/lib/layouts/graphicboxes.module new file mode 100644 index 0000000000..a93fe0cade --- /dev/null +++ b/lib/layouts/graphicboxes.module @@ -0,0 +1,78 @@ +#\DeclareLyXModule{GraphicBoxes} +#DescriptionBegin +#Boxes to scale and rotate its contents +#DescriptionEnd +# +#Author: Jürgen Spitzmüller +# Uwe Stöhr + +Format 49 + +InsetLayout Flex:Reflectbox + LyXType custom + Decoration classic + LabelString Reflectbox + LatexType command + LatexName reflectbox + LabelFont + Family Roman + Color red + EndFont + ResetsFont 0 + Requires graphicx + MultiPar 0 +End + +InsetLayout Flex:Scalebox + CopyStyle Flex:Reflectbox + LabelString Scalebox + LatexName scalebox + Argument 1 + LabelString "H-Factor" + Tooltip "Insert horizontal scale factor (1 = 100%)" + Mandatory 1 + DefaultArg "1" + AutoInsert 1 + EndArgument + Argument 2 + LabelString "V-Factor" + Tooltip "Insert vertical scale factor (1 = 100%)" + EndArgument +End + +InsetLayout Flex:Resizebox + CopyStyle Flex:Reflectbox + LabelString Resizebox + LatexName resizebox + Argument 1 + LabelString "Width" + Tooltip "Width of the box" + Mandatory 1 + DefaultArg "1cm" + AutoInsert 1 + EndArgument + Argument 2 + LabelString "Height" + Tooltip "Height of the box, can also be '!' to keep aspect ratio" + Mandatory 1 + DefaultArg "!" + AutoInsert 1 + EndArgument +End + +InsetLayout Flex:Rotatebox + CopyStyle Flex:Reflectbox + LabelString Rotatebox + LatexName rotatebox + Argument 1 + LabelString "Origin" + Tooltip "Rotation origin; syntax: 'origin=lt' (for top left corner)" + EndArgument + Argument 2 + LabelString "Angle" + Tooltip "Rotation angle in degrees (counterclockwise)" + DefaultArg "0" + AutoInsert 1 + Mandatory 1 + EndArgument +End -- 2.39.2