[TW5] Proper formatting of nested bullets after after a displayed MathJax equation?

188 views
Skip to first unread message

DM

unread,
Sep 8, 2014, 4:13:25 PM9/8/14
to tiddl...@googlegroups.com
Hello again!

Is there a way to "jump" to a certain nested list level without displaying bullets for all of the higher levels?

For instance, if I'm in the middle of a nested list and want to insert a displayed equation, I have to separate the displayed equation from earlier and subsequent content with an empty line (to ensure that MathJax correctly formats it) as follows:

[...]
* list item 1
** sublist item 1
** sublist item 2, related to the displayed equation


$$
    displayed equation related to sublist item
2
$$


** sublist item 3
* list item 2
[...]


This seems to work well for correctly displaying the equation, but the formatting of the bullet for "sublist item 3" includes level one and two bullets (since it's starting a list over again). Is there anyway to avoid this? The solution I've been using is to simply replace the asterisks for the lower list levels with colons (so replace ** with :* before "sublist item 3" in the above example), but this will of course just lead to TW displaying an indented top level bullet. It's not the end of the world or anything, but I'm curious if I've missed some kind built-in solution/trick here.

Thanks!

Richard Smith

unread,
Sep 8, 2014, 6:58:35 PM9/8/14
to tiddl...@googlegroups.com
Hi DM,

You could use block quotes in combination with list items which doesn't look too bad.

* list item 1
** sublist item 1
** sublist item 2, related to the displayed equation
**> $x^2=x^3 $
** sublist item 3
* list item 2


Or you could use HTML to write the list, like this

<ul>
<li>First list item</li>
<li>Second list item
  <ul>
  <li>A subitem<br>$$x^2 = x^3$$</li>
  <li>A subsequent subitem</li>
  </ul>
</li>
<li>Third list item</li>
</ul>

Regards,
Richard

Stephan Hradek

unread,
Sep 9, 2014, 1:11:26 AM9/9/14
to tiddl...@googlegroups.com
Did you try to move the equation to another tiddler and transclude that tiddler? I don't say it works, I'm just curious.

Jeremy Ruston

unread,
Sep 9, 2014, 5:05:25 PM9/9/14
to TiddlyWiki
Hi DM

I'd second Stephan's suggestion of transcluding the equations from a separate tiddler. For example:

[...]
* list item 1
** sublist item 1
** sublist item 2, related to the displayed equation
** <$transclude tiddler="myequation" mode="block"/>
** sublist item 3
* list item 2
[...]

Then define "myequation" as:

$$
    displayed equation related to sublist item 2
$$

Best wishes

Jeremy.



On Tue, Sep 9, 2014 at 6:11 AM, Stephan Hradek <stephan...@gmail.com> wrote:
Did you try to move the equation to another tiddler and transclude that tiddler? I don't say it works, I'm just curious.

--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.



--
Jeremy Ruston
mailto:jeremy...@gmail.com
Reply all
Reply to author
Forward
0 new messages