How to add hyperlink to bibliography titles in Jekyll using Jekyll-pandoc and jekyll-scholar bibtex renders? - hyperlink

I am using Jekyll with pandoc and Jekyll-scholar plugins to render bibtex database to appear on my static website. I wonder if there is any easy way to automatically add hyperlinks to all article titles of the rendered bibliography? I have tried to modify some CSL bibtex style template, but it doesn't seem to support hyperlink. I don't have any clue on how to using other methods to make it work.
A page I am working on can be found at http://i2000s.github.io/pubs/. The source code can be found at http://github.com/i2000s/i2000s.github.io/ (the Vita.html file). The configuration of Jekyll-scholar plugin can be found in the _config.yml file with more detailed information of the CSL style and bibtex files I am using. Thanks!

Related

Can I attach/embed a file to a Latex document and hyperlink it to a word for saving purposes?

I am trying to attach a .condarc file to my Latex journal as an installation guide. I want users for my workshop to click on a hyperlink and be able to save/download the file. Is this possible through Latex in general? What about on Overleaf?
I've looked all over the place, however there seem to only be file specific packages.
I tried using the embedfile and attachfile packages. Here's an example of what I did:
\usepackage{embedfile}
\embedfile[
desc={Source of Package 'embedfile'}
]{.condarc }
I did the above because I thought the first step is to get the file embedded somewhere, anywhere. Then I could reference the file in later steps.
Thank you for any guidance!
If you use a pdf viewer that supports attachments (e.g. adobe reader) the following example using the attachfile package will attach the .codarc file to the pdf and produce a text link that will prompt the user for future action:
\documentclass{article}
\usepackage{attachfile}
\begin{document}
test \textattachfile[color=1 0 0]{.codarc}{.codarc}
\end{document}
(please be aware that even if a pdf viewer might be technically equipped to open such embedded files, users may have this feature disabled due to security concerns)
Instead of attaching the file, one could also host it somewhere on the internet and put a link into the pdf. This will work for a much larger variety of pdf viewers.
\documentclass{article}
\usepackage{hyperref}
\begin{document}
test
\href{https://raw.githubusercontent.com/samcarter/tikzducks/master/LICENSE.txt}{LICENSE.txt}
\end{document}

Sphinx restructuredText to HTML hyperlink conversion

I have a collection of reStructuredText files which link to each other in the following manner:
further reading at `document name <otherdoc.rst>`.
I have noticed that this works really well on BitBucket and Github, as .rst files are rendered quite nicely and the links in-between the files work.
However, now I wanted to generate HTML documents with Sphinx and noticed that Sphinx is not converting links like the example above to HTML links, so I have a bunch of HTML files with broken links. How can I fix this without breaking the links on GitHub and BitBucket?
From the Sphinx documentation on hyperlinks it seems that the syntax for inline external hyperlinks is
`Link text <http://example.com/>`_
Note the trailing _ just after the final back-tick. Try adding this underscore and seeing if this fixes your links in your Sphinx output.

Generating a nice web documentation from .pdf or .tex

I wrote a documentation for an application in LaTex, and was wondering what the best way to display in a webpage. I can just convert it to HTML, but I'm wondering if there's a better way with all the nice css styling done automatically as in other web documentations.
I'm looking for something like Sphinx, but never used it, so not sure if it's a good solution to a document already made in .tex/.pdf
Here's what I did, (thx #Blender)
Exported the Latex file to html using tex4ht (texmaker) and used pandoc to convert the html file to reStructuresText, and edited that .rst to fit the specifications of sphinx. This was needed since I wanted to break the latex file to few different HTML files.
Then used sphinx to generate the PDF file. I think I'm going to keep writing in .rst, so it's easy to convert both to HTML, and PDF.
Adding the answer so anyone having the same problem will get some ideas.

Rendering equations with Doxygen and MathJax in CHM file

I've got doxygen configured so that I can get MathJax to render equations nicely in the HTML output. I had hoped that things would magically work with output to a CHM file (which is what I distribute), but unfortunately I was wrong.
Has anyone tried to do this before, and if so, how did you do it?
Anyway, use a tool (search for chmlib or "chm decompressor") to look inside the CHM, and check all relevant JS scripts and other files are there.
If Doxygen doesn't add all relevant files to the .hhp, it might be possible that the outdates html scanning of HTML help doesn't find and package all references to external files.

Troubleshooting "call to undefined function" when adding Markdown to project

I'm trying to add some Markdown capabilities to my Symfony project (Symfony version 1.3.3).
To accomplish that, I had already included the Markdown library into lib/vendor directory. Also, I added the need configuration in the autoload.yml for the previous library.
However, I'm getting a fatal PHP error:
Call to undefined function Markdown()
How can I resolve this problem?
The symfony autoloader loads classes from php files named like <classname>.class.php. If you're using the markdown.php file from mitchelf.com, it does not follow the naming scheme, nor does it contain a class called Markdown, as a matter of fact: it has a function called Markdown.
Symfony isn't even trying to load it, for reasons I described above. You will have to include it manually. I suggest you have a look at http://www.symfony-project.org/plugins/sfEasyMarkdownPlugin.
I do NOT suggest installing a plugin for such a simple feature. It is not hard for you to figure it out if you have some real examples.
There is an open source project based on symfony named Bookeet. It has embedded MarkDowm feature. It uses markitup as the markdown editor. And it uses php markdown to convert markdown code to html code.
To save your time, go directly to changeset 29f0ba1807 of the Bookeet project(I am sorry that I can't post the hyperlink because SO doesn't permit new user to post more than one hyperlink). You could see clearly what should be done in order to add markdown feature to your website.

Resources