Bookdown chapter bibliographies .csl file MSWord/PDF - ms-word

My desired output is both an (1) MSWord and (2) PDF document, both with (a) in-text citations, (b) citations in some footnotes/endnotes, (c) chapter bibliographies, and (d) cumulative bibliography, (a)-(d) according to the .csl file, Springer - Humanities (author-date).
My tools are: .Rmd files, bookdown, LibreOffice, Zotero.
My problem:
IF(MSWord output) {NO chapter bibliographies}
IF(PDF output AND chapter bibliographies) {citation_package: natbib OR citation_package: biblatex}
IF(PDF output AND .csl file) {citation_package: none}
I hope to avoid breaking the book into separate bookdown projects for each chapter---this is annoying manual work and some chapters build R objects that are used in subsequent chapters (so it would be required rewriting code and caching things, etc.).
Attempted solutions:
I have successfully implemented both the biblatex and the natbib solutions to "bookdown + chapter bibliographies + PDF" here, but that solves one part of my problem: Is there a way to add chapter bibliographies using bookdown?
I have successfully implemented the solution to "bookdown + .csl file + PDF" here, but that solves one part of my problem: use csl-file for pdf-output in bookdown
Notes
The PDF output will be considered a reference document, thus solving the MSWord document problem is the priority (which may involve manually copying and pasting from the PDF output).
Technically, I'm also using the documentclass: svmono (where author/svmono.cls is here: Springer LaTeX2e macro packages for monographs and no "Humanities" .bst file is offered)

Related

Merge 2 pdf files and preserve forms

I'd like to merge at least 2 PDF files into one while preserving all the form elements in the original PDFs. The form elements include text fields, radio buttons, check boxes, drop down menus and others. Please have a look at this sample PDF file with forms:
http://foersom.com/net/HowTo/data/OoPdfFormExample.pdf
Now try to merge it with any other arbitrary PDF file.
Can you do it?
EDIT: As for the implementation, I'd ideally prefer a command line solution on a linux plattform using open source tools such as 'ghostscript', or any other tool that you think is appropriate to solve this task.
Of course, everybody is welcome to supply any working solution to this problem, including a coded solution that involves writing a script which makes some API calls to a pdf-processing library. However, I'd suggest to take the path of least resistance first (CMD Solution).
Best Regards
EDIT #2: Well there are indeed several CMD tools that merge PDFs. However, these tools don't seem to, AFAIK, to preserve the forms in the original PDFs! These tools appear to simply just concatenate the printouts of all those PDFs into a single Printout, which is then presented as a single PDF.
Furthermore, If you printout a PDF file with forms into a file, you lose all the forms in it. This clearly not what I'm looking for.
I have found success using pdftk, which is an open-source software that runs on linux and can be called from your terminal.
To concatenate multiple pdfs into one (and preserve form-fillable elements), you can use the following command:
pdftk input1.pdf input2.pdf cat output output-file.pdf

Generate .hhk file From Word Document

I am trying to convert MS Word file to chm file. I have a well organized word document. But,I could not figure out how to word saved as a html file to chm file. I know I can add html file to created project but there are some issue such that I could not solve how to convert ms word table of content file to index file in html help workshop program. I would be very happy If someone provide some example about conversion of word documents.(I am trying to achieve this thorough HTML Help Workshop program)
Best regards,
Converting a Word document to CHM format is difficult without special (often expensive) tools and has a learning curve.
You should think about whether the PDF format is not sufficient. But the CHM format - integrated in the Windows operating system - has of course some popular functions.
I recommend to read through Search and Index not working after converting from Word 2016 to CHM.
As I mentioned in my answer I never used chmProcessor before (because using other tools) but surprisingly seems to be a good one for converting Word documents in a simple way.
Please try chmProcessor for your needs. You may want to ask a new question here on SO later.
Edit:
Maybe you have additional interest in the following CodeProject article:
How to Easily Write a User's Guide for Your Application using Different File Extensions

Using latex packages in MATLAB markup publish

I'm on Mac OSX 10.10.5 and MATLAB 2015b, and have now spent hours trying to follow various googled instructions for how to import LaTeX packages and use them in within MATLAB's markup 'functionality'. The most concise instructions I've found are contained here:
How do you use the LaTeX blackboard font in MATLAB?
http://mathforum.org/kb/message.jspa?messageID=7574110
However, nothing has so far worked. I've tried:
copying .cls files to /Applications/MATLAB_R2015b.app/sys/tex/latex/base/ (and /Applications/MATLAB_R2015b.app/sys/tex/)
editing my /Applications/MATLAB_R2015b.app/sys/tex/mwarticle.cls to \usepackage, \RequirePackage, or \include as described here
editing my /Applications/MATLAB_R2015b.app/toolbox/matlab/graphics/tex.m file to \usepackage or \RequirePackage as described here
appending texpath in .../tex.m with downloaded package zips or those with in my Tex distribution e.g. /usr/local/texlive/2014/texmf-dist/tex/latex/amsmath, .../source/latex/amsmath, and .../doc/latex/amsmath (both using the fullfile function and plain strings)
This is trivial with free software R and R Studio with R markdown documents. I'm very surprised this is so difficult for proprietry software, especially given that it has been noted as far back as five years ago

Include *prewritten* documentation in Doxygen

To distinguish this question from Doxygen: Adding a custom link under the "Related Pages" section which has an accepted answer that is not a real answer to the question, I specifically add prewritten to the question.
What I want:
Write one document tex file (without preamble, since this file will be \input-ed into a full document)
Import the document into Doxygen's HTML output.
Using Doxygen to produce tex file will probably not work, since it does too much layout work [This holds for its HTML output too like empty table rows 2015]. If Doxygen takes some other input that can easily be transformed into LaTeX, that will do.
You can easily add an already existing Latex file to your doxygen documentation using \latexonly\input{yourfile}\endlatexonly.
I would assume you put it e.g. under a doxygen \page.

How to use SyncTeX with Org-mode?

Background
With SyncTeX you can get forward and backward search between a source document and the typeset material. More specifically:
Forward search is to jump from a particular place in the source document, e.g. a LaTeX file, to the corresponding place in the typeset material, e.g. a PDF file.
Backward search is to jump from a particular place in the typeset material, e.g. a PDF file, to the corresponding place in the source document, e.g. a LaTeX file.
With Org-mode you can export as LaTeX and process it to PDF.
Question
It would be useful to be able to do forward and backward search between an Org-mode file and the PDF it produces on LaTeX export. Is this possible?
As mentioned, SyncTeX already implements forward and backward search between a LaTeX file and its resulting file. So the missing link seems to be the jump between the Org-mode file and the LaTeX file it is exported as.
I found a similar question on the mailing list: [Orgmode] synctex!! ...syncorg? It got no answer involving a solution.
There is a recent (April 2013) thread on the org-mode mailing list which has some preliminary patches. However, reading the emails, it seems like it's a tricky problem.
There is a more recent (depending on your frame of reference) post from October 2013 which has a solution. However, I have not been successful with that code, and re-raised the issue in this thread.