在HTML中\subparagraph {}等效 [英] \subparagraph{} equivalent in html

查看:152
本文介绍了在HTML中\subparagraph {}等效的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有习惯使用LaTeX,然后在HTML中我不知道哪个元素可以代替LaTeX的 \subparagraph {} 命令。 < br /> 不是一个好主意,因为它相当于LaTeX中的空白行。我可以创建一个特殊的类小段,但在我想知道HTML是否没有类似的元素之前。



\subparagrahp {} LaTeX的命令位于段落和HTML的< br /> 元素之间。 Overapi 没有告诉我更多:/ b / b

有人有什么想法吗?

解决方案

您可以使用 div 元素作为段落, p 元素作为子段落,并带有额外的样式类,这可以表示您的LaTeX文档结构。

  \paragraph {Introfoo} 
介绍lorem lorem

\subparagraph * {}
Foobar lorem impsum ugh

\subparagraph * {}
Foobar lorem impsum ugh

会转化为:
h3 标记只是一个建议,其级别取决于您的其他结构。

 < div class =paragraph> 
< h3 class =paragraph> Introfoo< / h3>
< p class =paragraph>
介绍lorem lorem
< / p>
< p class =subparagraph>
Foobar lorem impsum ugh 1



< p class =subparagraph>
Foobar lorem impsum ugh 2
< / p>
< / div>


I have my habits with LaTeX, then in HTML I don’t know which element can replace the LaTeX’s \subparagraph{} command. <br /> isn’t a good idea because it is the equivalent of the blank line in LaTeX. I can create a special class "subparagraph" but before I want to know if HTML didn’t have a similar element.

The \subparagrahp{} LaTeX’s command is something between the paragraph and the HTML’s <br /> element. Overapi didn’t tell me more :/

Someone have any idea please?

解决方案

You could use a div element as the paragraph subsitute and p elements as subparagraphs, with additional class for styling, this could represent your LaTeX document structure.

\paragraph{Introfoo}
Introduction lorem lorem

  \subparagraph*{}
  Foobar lorem impsum ugh

  \subparagraph*{}
  Foobar lorem impsum ugh

would translate to: The h3 tag is just a suggestion, the level depends on your other structure around this.

<div class="paragraph">
  <h3 class="paragraph">Introfoo</h3>
  <p class="paragraph">    
    Introduction lorem lorem
  </p>
  <p class="subparagraph">
    Foobar lorem impsum ugh 1
  </p>

  <p class="subparagraph">
    Foobar lorem impsum ugh 2
  </p>
</div>

这篇关于在HTML中\subparagraph {}等效的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆