I can add a footnote to an Rmarkdown with a pdf output with ^[This sentence will be printed as a footnote.]. However, this footnote will be tagged 1. I would prefer the footnote to have alphabet or roman numeral tags since the document contains numerical citations. How can I use alphabets for footnote tagging in Rmarkdown?
Related
I use R Markdown to write some statistical analysis reports that then need to be modified in LibreOffice (or Word). I use a library (papaja) that is extremely useful but forces me to use LaTeX that Pandoc then converts to formulae. I don't want it to be converted. The only thing I want to preserve form LaTeX formatting is italic for letters. That's exactly what I get when I use rtf_document as my output format – LaTeX letters are converted to italic, numbers to regular text. Is there a way to stop Pandoc from converting LaTeX to formulae when using odt_document or word_document as output? A work-around is to use rtf_document and then convert it to .odt with LibreOffice.
Example:
---
output: odt_document
---
The model fits the data ($F(3, 596) = 13.19$, $p < .001$).
What I get:
What I want to get:
I'm using bookdown to write a paper. The knitted word file automatically assigns numbers to each heading, to form chapters. However, I don't want these, as they're sections of a paper rather than individual chapters.
I have found if I include {-} next to a heading, it isn't given a number in the word output. However, the figures are still captioned as if they're numbered by chapters, but instead of being "Fig 1.2" they are Fig "0.2" and I actually just want "Fig 2". Does anyone know how to stop it from doing this?
I am trying to implement a factoid based question answering system. So far I have retrieved candidate text documents which may contain answers.
But now I am stuck where I have to extract right passages from the documents based on the keywords provided.
I have briefly studied approaches like LCC and InsightSoft, but cannot figure out how to move forward.
Consider that I have a document containing many paragraphs(passages).I want to rank these paragraphs based on certain keywords.
Example:
Keywords- leopard, lion
Para 1: "..no sentence about leopard or leopard..""
Para 2:"..few sentences about lion.."
Para 3:"..sentences about both lion and leopard.."
Goal: To rank(or fetch) Para 2 and Para 3
How can I implement(program) the same?
And is there a way to rank these passages based on the tag provided to the keywords by a POS tagger?
Any code or implementation of existing algorithms will be appreciated. Please be elaborate while explaining as I'm not an expert in Python.
Take a look at this question on stack overflow, it's along the same lines.
You're going to want to tokenise your paragraphs and input, your output could simply be every passage that contains a word in your query, or the results could ranked using a vector space model.
I am writing a javascript lexer/parser for DXF files and have come across this from the AutoDesk Drawing Interchange and File Formats document:
The first line of a group is a group code, which is a positive nonzero
integer output in FORTRAN I3--that is, right-justified and blank
filled in a three-character field (the exception to this is the
four-digit extended entity data group codes, which are output in
FORTRAN I4).
This clearly states what FORTRAN 13 output is, but what is FORTRAN 14 output? A Google search returns absolutely nothing. It must be similar to FORTRAN 13 in style, but how big is the field?
What is FORTRAN 14?
The documentation mentions I4, not 14. The Fortran output format I4 stands for an integer with width four characters.
I'm trying to create QTextEdit with some text, and in this text I have end of line characters (\n), but it is not accepted in QTextEdit object (whole text is displayed without any breaks). Any reason why?
If you're using Qt 4.3 or later, then you can use setPlainText(const QString &text)
You can turn off rich text editing with setAcceptRichText(bool accept) (Qt 4.1 or later)
Per the docs, if you setTextFormat(PlainText) you should get what you want -- quoting with added emphasis:
QTextEdit works on paragraphs and
characters. A paragraph is a formatted
string which is word-wrapped to fit
into the width of the widget. By
default when reading plain text, one
newline signify a paragraph. A
document consists of zero or more
paragraphs, indexed from 0. Characters
are indexed on a per-paragraph basis,
also indexed from 0. The words in the
paragraph are aligned in accordance
with the paragraph's alignment().
Paragraphs are separated by hard line
breaks. Each character within a
paragraph has its own attributes, for
example, font and color.
For PyQt5, new line was not showing rather entire text was shown as a string.
Firstly, set the object to accept rich text.
self.massorder.setAcceptRichText(True)
Secondly,
_data = self.massorder.toPlainText().split("\n")