4 Apr 11:30
Re: isolating nested tikz code from outer tikz code
Till Tantau <tantau <at> tcs.uni-luebeck.de>
2007-04-04 09:30:03 GMT
2007-04-04 09:30:03 GMT
Please lookup TeX's \mathchoice command, that will do the trick.
Till
Am 03.04.2007 um 22:30 schrieb Erik Quaeghebeur:
> On Tue, 3 Apr 2007, Till Tantau wrote:
>>
>> first, I think \newcommand should have an argument [1] and \p should
>> read #1, right?
>
> Indeed, something like that.
>
>> second, the wrong placements seem to be due to changing anchors. Try
>> \useasboundingbox node[inner sep=0pt,outer sep=0pt,anchor=center] ...
>>
>> Perhaps anchor=base might be preferable and saying \tikz[baseline] so
>> that the code can be used in normal text.
>
> Thanks, this solves the positioning problem.
>
> However, I stil have the problem that the symbol thus defined doesn't
> notice it's in math mode, or in a subscript (see minimal example
> below).
> How can I solve this?
>
> ---
> \documentclass{article}
> \usepackage{tikz}
>
(Continue reading)
RSS Feed