我目前卡住了,有两个单独的词汇表:main&acronyms.Acronyms术语表在文本中首次使用时打印脚注,但main词汇表没有.是否有任何方法可以制作任何其他词汇表,而不是acronyms在首次使用该术语时打印脚注?我不明白怎么做.
以下是使用TeXnic Center和MiKTeX 2.7编译的代码示例:
\documentclass{article}
\usepackage{index}
\usepackage[toc,style=long3colheaderborder,footnote,acronym]{glossaries}
\makeindex
\makeglossaries
\newglossaryentry{appdomain}{name={application domain}, description={app Domain Description...}}
\newglossaryentry{sample}{name={[has been inserted aaa]},description={testing testing 123}}
\newacronym{aca}{aca}{a contrived acronym}
\begin{document}
\section{this is a test section}
This is the test line... a \gls{sample} \gls{appdomain}
\index{entry} and \gls{aca}
\thispagestyle{empty}\cleardoublepage
\printglossary[type=main,title={Glossary},toctitle={Glossary}]
\thispagestyle{empty}\cleardoublepage
\printglossary[type=\acronymtype,title={List of Abbreviations},toctitle={List of Abbreviations}]
\printindex
\thispagestyle{empty}\cleardoublepage
\end{document}
Run Code Online (Sandbox Code Playgroud)
我想样本和应用程序域包含脚注和说明或脚注说明:请参阅词汇表
非常感谢,
Ovanes
我怎么能在脚注中的数字后留空?一般来说,对于所有脚注!
例:
好:1 Hello World
坏:1 Hello World
我不是问如何告诉脚注如何做到这一点 - 我在initializers/footnotes.rb文件中使用这一行:
Footnotes::Filter.prefix = 'txmt://open?url=file://%s&line=%d&column=%d'
Run Code Online (Sandbox Code Playgroud)
我的问题是应该取代txmt://open?...什么?我尝试过subl://,sblm://但没有快乐.是否与open?url=等有关?
在Emacs组织模式中,有没有办法让内联脚注定义显示为折叠?
例如,这样的一行:
This effect is due to the strength of weak ties[fn:: Newman, Mark, Albert-László Barabási, and Duncan J. Watts. 2006. The Structure and Dynamics of Networks. Princeton, NJ: Princeton University Press].
Run Code Online (Sandbox Code Playgroud)
可能只是这样:
This effect is due to the strength of weak ties[?].
Run Code Online (Sandbox Code Playgroud)
我还需要一个命令来在必要时显示脚注.所以可能需要的是两个命令:org-hide-footnotes和org-show-footnotes.
使用 LilyPond 2.17.25 编写长脚注时,文本不会分成多行或遵守边距限制。如果可能的话,我也希望将其设置为合理的对齐方式。
这是一个小例子:
\version "2.17.25"
{
\footnote #'(-1 . 1)
\markup{Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut eget ante venenatis mi consectetur ornare. Cras facilisis dictum venenatis. Donec.}
a'4 b' c'' d''
}
Run Code Online (Sandbox Code Playgroud)
多谢!
我一直试图在我的Hexo帖子中插入脚注(用Markdown编写,如果他们的标记语言相关).我来自使用Jekyll为我的网站提供动力的背景,当我使用Jekyll时,我会[^n]在文本中添加(其中n是正整数,即n∈{1,2,3,...}),例如:
[^1]: footnote #1
[^2]: footnote #2
[^3]: footnote #3
...
Run Code Online (Sandbox Code Playgroud)
在帖子的末尾,其中footnote #1,#2,#3,等被替换为我的实际注脚.虽然Hexo的东西看起来有点复杂.我在https://hexo.io/plugins/上找了一个脚注插件,我可能会添加不成功,然后我用Google搜索答案并找到了这个要点https://gist.github.com/kuanyui/d1728c2a526a615de56c.我试图通过将它添加到我的Hexo站点的script文件夹来使用这个要点,但是这个失败了(有关完整的错误详情,请参阅要点,因为我在那里评论了详细信息).然后,我通过检查我的Jekyll帖子的生成内容尝试了一个HTML技巧,该帖子通过上述方法添加了脚注.即,添加:
<sup id="fnref:n"><a href="#fn:n" class="footnote">n</a></sup>
Run Code Online (Sandbox Code Playgroud)
(其中n又是正整数)在文本中我希望我的脚注出现并且:
<ol>
<li id="fn:1">Footnote #1.<a href="#fnref:1" class="reversefootnote">?</a></li>
<li id="fn:2">Footnote #2.<a href="#fnref:2" class="reversefootnote">?</a></li>
<li id="fn:3">Footnote #3.<a href="#fnref:3" class="reversefootnote">?</a></li>
...
</ol>
Run Code Online (Sandbox Code Playgroud)
到帖子的结尾.问题是这种方法虽然有效,但也很繁琐(即每个脚注需要比我想要的更多的打字),所以我尝试创建这个ejs模板(对应于文本脚注),我放在我的layouts文件夹下的名称footnotes.ejs:
<sup id ="fnref:<%= n %>"><a href="#fn:<%= n %>"><%= n %></a></sup>
Run Code Online (Sandbox Code Playgroud)
并将其插入我的帖子中:
<%- include('layouts/footnotes', {n:1}); %>
Run Code Online (Sandbox Code Playgroud)
但这也失败了(失败了,我的意思是当我生成我的hexo网站时,这个文本引文完全没有格式化).
所以我在这里要求一种更有效的方法将脚注插入Hexo帖子.即每个脚注尽可能少打字的人.
我想包括图题中的一个脚注中呈现为PDF和HTML的R降价报告(报告是基于bookdown/ thesisdown/ huskydown)。
理想的做法是使用文本引用:
(ref:foo-footnote) Text in the footnote.
Can span multiple lines, but has to start on the line of the text reference.
(ref:foo-caption) My text with a footnote.^[(ref:foo-footnote)]
Run Code Online (Sandbox Code Playgroud)
---
title: "Footnote in Caption"
author: "Test"
output: html_document
#output: pdf_document
---
## Figure with caption which includes a footnote
<!-------------------------------------------------------------------->
<!-- Reference the figure "by number" as usual with \@ref(fig:foo) -->
<!-- Reference the figure "by name" by adding an anchor above the figure: …Run Code Online (Sandbox Code Playgroud) 我有一个带脚注的组织模式文档:
This some text[fn:1]. This is another text[fn:2].
* Footnotes
[fn:1] This is footnote's first line.
This is footnote's second line.
[fn:2] Another footnote
Run Code Online (Sandbox Code Playgroud)
然后我再打,然后按下重新编排注脚C-u C-c C-x f S- org-footnote-action它执行(org-footnote-renumber-fn:N)和(org-footnote-normalize 'sort).结果是:
This some text[fn:1]. This is another text[fn:2].
* Footnotes
[fn:1] This is footnote's first line.
[fn:2] Another footnote
Run Code Online (Sandbox Code Playgroud)
脚注的第二段丢失了.这使得在组织模式下不可能有多个段落脚注.一个半解决方案是为每个段落单独添加脚注,但我不希望这样.
是否有可能在脚注中保留结构?我该怎么做才能使org-mode不删除脚注中的文字?
我希望脚注中的字体大小小于表格中的文本,但无法弄清楚。是否有类似于 kable_styling 的东西,我可以在其中编辑表中可用于脚注的行的文本和颜色?我正在使用 RMarkdown 生成 HTML 而不是 LateX。
---
title: "Untitled"
output: html_document
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = FALSE )
library( kableExtra )
library( knitr )
```
```{r mtcars}
tab_mtcars <- knitr::kable( mtcars[ 1:5 , c( 1:4 )] , format = "html", col.names = c( "MPG", "CYL", "DISP" , "HP" ) , align = "lccc" , escape = F ) %>% kable_styling( full_width = T , bootstrap_options = c( "hover", "condensed" , "bordered"), position = "left") %>% add_header_above( c( …Run Code Online (Sandbox Code Playgroud) 我想在 HTML 中多次使用同一个脚注Quarto。问题是,一旦我创建脚注并使用它两次,它将显示为两个脚注。这是一个可重现的示例:
---
title: "Footnote multiple times"
editor: visual
format: html
---
Some example text for a footnote[^1].
Some example text for same footnote[^1].
[^1]: Example footnote.
Run Code Online (Sandbox Code Playgroud)
输出:
正如您所看到的,脚注显示为两个单独的脚注(重复),而我创建了一个脚注。所以我想知道是否有人知道如何创建一个脚注并在 HTML 四开本中多次使用它?
footnotes ×10
emacs ×2
latex ×2
org-mode ×2
r-markdown ×2
bookdown ×1
caption ×1
elisp ×1
formatting ×1
glossaries ×1
hexo ×1
html ×1
kable ×1
kableextra ×1
lilypond ×1
lisp ×1
markdown ×1
quarto ×1
r ×1
sublimetext ×1
text ×1