Importing .tex table to lyx using tex2lyx - tex

I'm writing a document in lyx and I have tables that are .tex files. I usually import them via the menu, but I would like to import them directly using a snippet of tex code in the lyx file using directly tex2lyx in the document.
How do I do it? Thanks in advance.

Just go to Insert > File > Child Document and select your .tex file. You can have it show a preview if you want. For more questions, please ask on tex.stackexchange.com

Related

Generate Table of Contents (ToC) automatically

I have a Latex project that is including multiple PDFs. These PDFs are added in the final document through the includepdf tag when the project is compiled over Overleaf. My question is can Latex automatically generate a ToC from included PDFs, i.e., can it automatically read the \section \subsection tags from the included files and automatically generate it? Or maybe this is only possible if I included the separate project or sources into the final solution and compile that.
Your help is so welcome!
Including a rendered pdf file in your project would make you limited in accessing details of those documents. You will then only be able to select specific pages or add some content on specific places of those files (e.g. your own page numbers).
Since you have access to those projects, best is to nest those raw tex files under your current project using one (or a combination) of the following methods:
Input command: \input{foo.tex}: in this case the input file mustn't be a separate project (no \begindocument and \enddocument in it)
Include command: \include{foo.tex}: very similar to input command but a bit limited about nested includes.
import package: very similar to input and include commands but allows nested imports and also accepts a different logic for path resolution on its input (i.e. it accepts relative path to the file from where it is called).
subfiles package: In this case the subfile can have its own document body and is able to be rendered separately. The subfiles would use the preambles of your main project.
standalone package: Similar to subfiles but the main project would use the preambles of your subfiles in this case.
Overleaf nicely allows you to add files from another project which is the best choice when the other file is still being developed in a separate project. In this case, the file remains under control of the other project.
For further info, here is a very nice guide on how to write modular documents in latex and here is a brief tutorial on subfiles and standalone.

Insert contents from an external text file into a latex file

I have a text file in the working directory of a latex document. I have created sections in the latex document. I would like to insert the contents of the text file in latex.
My reason for doing so is to simply the latex file into simple parts so that it is not over crowded. The text file may contain equations as well.
There is a verbatim package but I am not able to install it via the package manager in Miktex. I tried to install it via mpm --install verbatim in the command line but it cannot find the package.
I am not sure if that is the right way. I hope someone can guide me in the right direction.
I am writing this answer with the help of comment from NickD.
In the same working folder create a separate file foo.tex
In the main file, where you need it imported, type in the code \include{foo}
After compiling it, you should be able to see the imported contents from foo.tex

How can we use Apache POI library for .xls file in iOS

I want to read, write and edit .xls files in iOS,
There are some libraries like JXSL(for writing) and DHXLS (for reading),
But I want to edit the existing file.
Any help will be appreciated

One localization source for code and design

Is there any way to use just one file for localizing texts in Xcode 7 and above?
Maybe some kind of macro/script in Xcode.. whatever..?
I mean making the storyboard/IB resources to use the words directly from a Localizable.strings file instead of having the code using the texts from localizable and the storyboad having their own localization files.
Please share your opinions/solutions about that. Also please do not mention the solution of entering everything through code, that does not seem valid/recommended.
Here's how you can consolidate your localisable content into a single file to send out for translation:
With your Xcode project open, select the project file
Editor -> Export for Localization...
Follow the steps
You will then get an .xliff file for each language that you want to have as part of your app. Send this out to your translators, and they will send it back, with the localised content. Once that's done, simply do the same steps, but for importing instead:
With your Xcode project open, select the project file
Editor -> Import Localizations...
Follow the steps

How to customize the documents generated by Doxygen?

I am making use of Doxygen tool for code documentation for an iOS (Objective-c based) project.
When the Doxygen tool is run for the project it is generating the selected html files.
The generated files contains some of the unwanted classes. So how do I customize the documents with Doxygen.
It has already been given here, but the doubt is how to make use of this with the tool?
Please let us know about it.
Thanks in advance..
I don't know if there is a possibility to delete classes from the output. I do this by simply excluding the source files containing the unwanted classes.
Go to the Expert tab, choose Input and exclude all the files containing your unwanted classes.

Resources