Subject: mailing-list for TeXmacs Users
List archive
From : "Sam Liddicott" <address@hidden>- To: address@hidden
- Subject: [TeXmacs] The old concat/document inline/block confusion:
- Date: Mon, 04 Jul 2011 18:06:50 +0100
- Envelope-to:
- Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAMAAABg3Am1AAAAAXNSR0IArs4c6QAAADxQTFRF NTdQY2Z/i286eHFugnNXoJBwm5GCs5VeoqO0ua+fwLCQ4c2q19C81NDF4eLr/unQ/PTf/fXW+/rq /f/7XKo76wAAAAlwSFlzAAALEwAACxMBAJqcGAAAAi9JREFUSMetloGSqyAMRVsFNAQkxP//15cE 62rFdt/MZqbTVu/hBhLEx/qf8fgDIAN455wHyPk7wCIe9nA+fwGSH87hgD8AHPfRpy2GwdMtcBh+ mg4Ech9Ih+RNixJKDLEL0GF8VLkSojePHrDlryNijbFW8zBg8PUKbBOI6D1WCV5Rf2DzxCtgBlMs tRRVW5LyVW3ew1TfAZZ6RcQicpb4yZmaC74DJADK6BdATOrUAbJzsZie+K22ZnEBknNYysvhVH6u 1X8CqAe4DuANoPoOrAbsHXUARJ5knc5z4EyyTnHoAqj7xvkYIdk65AwhyEZKMusOIDV2QQQaCnDQ gBiDR3RdIEb5CBESt2wgQJI0Yx/Agphg1MgNsD+QkszM9wHVPx/PeQOW+fmcR9DF8+4CyCJhCuP8 fDzmBbLqs8JzMODqYNfDvKhoGYM2lDosy5jlRozccRAgrPM8iygQS3Mv87IugUgKlC7NZ6liuy4r uresVq5QuQAr09ZKEga8OkluyKXeQ6Bs3SrtqgC1pWLNqAfwDhBnB+sK8OrVL4D4h1B4zWPWhJhu gPUHKA5EwSMYUMsdQK+UKDhIOTSHeg+8HCoTOGtB/gwcl4mSdGybwXegPWhM/RHYKwchkckhUNMX 6j7ueQNScLbZZOPRxaADyO2UQCJpl7wbnE6gQ+ksWjpngxOwF1tF5ecP3R6KB+AQxPfHLncQ+nKw 06fhu68OTIfJ869eTtg22l+9zfwDK3mKl5BFHMYAAAAASUVORK5CYII=
I thought I had a clever problem to make verbatim render a smaller font with no par-par-sep when in document mode; otherwise the standard font and spacing seem over-large and almost blind me. But, on the other hand, the odd couple of words of inline verbatim is about the right size
I thought the trick would be in this new verbatim macro to detect if the argument is <document> or not using get-label
<assign|old-verbatim|<value|verbatim>>
<assign|verbatim|<macro|x|<if|<equal|<get-label|<arg|x>>|document>|<small|<with|par-par-sep|0fn|<old-verbatim|<arg|x>>>>|<old-verbatim|<arg|x>>>>>
Well... it DOES work, however, in document mode, as well as the font shrinking nicely, the lines no longer wrap in the right place.
I'm sure drd business has some relevance here but I can't think what it is.
if I press ENTER right inside the macro definition, just before the "if" then my macro becomes a block macro and wraps in the write place, except when it is used inline.
Is it possible to write a macro that can be a block macro when invoked with a block argument and inline when invoked with an inline argument?
Sam
- [TeXmacs] The old concat/document inline/block confusion:, Sam Liddicott, 07/04/2011
Archive powered by MHonArc 2.6.19.