On 17/10/2018 4:47 a.m., Paul A. Rubin wrote:
Dear devs,
I'm struggling to cobble together a module supporting the pseudocode
features of the algorithmicx package. As a disclaimer, I'm trying to
avoid flex insets and stick to environments as much as possible,
because there's less mousery switching an environment than insert an
inset.
Right now, I'm tripping over the for block, which it implements by two
LaTeX commands: \For{<conditions>} and \EndFor. I can treat those as
command styles and get the correct output, but the GUI is confusing to
the user because nothing displays in the line ending the loop (it
looks like a blank line to the user) and the condition appears in the
starting line with no visible prefix (so it looks like any random
statement in the algorithm, unless you notice what the environment
select box is displaying.
So what I'm looking for right now is a way to display a
tag/prefix/symbol at the start of a command style that appears in the
GUI but /not/ in the compiled output. The "handle" for an inset would
be fine, as would something like a bullet that was GUI-only. Can this
be done with the current layout/module system?
TIA,
Paul
Is this what you are wanting (from Customization manual 5.3.7)? (I
experimented with this a couple of years ago, so my memory of the exact
effect is somewhat hazy.)
Andrew
|LabelType|
[|/No_Label/, Manual, Static, Above,
Centered, Sensitive, Enumerate,
Itemize, Bibliography|]
|Static|
means the label is simply what is declared as |LabelString|.
This will be displayed “inline”, at the beginning of the
paragraph. If the |LatexType| is |Environment|, then it will be
displayed only in the first paragraph of any sequence of
paragraphs with the same |Style|.
|Above| and |Centered|
are special cases of |Static|. The label will be printed above
the paragraph either at the beginning of the line or centered.
---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus