What is the best way to add the path for an updated Tex Live installation?
Using
PATH="${tldir}/bin/x86_64-linux:$PATH"
or
PATH="$PATH:${tldir}/bin/x86_64-linux"
That is, should PATH lead or follow the Tex Live path?
Related
In IcCube V7 reporting, I could use either absolute or relative path for referencing sub reports to be opened in an "embedded dashboard" widget.
I did not success to do the same in V8.2.2. (only absolute path seems to work)
Isn't it still an available functionality (relative path)? tried on the IcCube Live Demo with no luck :
This functionality is not (yet) added to the reporting. We'll add it to the next V8.3 release. Then, for example, you can use the relative path Repetition Widget instead of the absolute path shared:/Live Demo/Miscellaneous/Repetition Widget.
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}
For a casual search in UE's docs I couldn't find environment variables that I could use in the settings within the Editor UI and would look like $PROJECT_ROOT. And my specified relative paths like path/to/my/subfolder seem to get resolved as relative to where the installed Unreal Engine is.
How should I specify the project root to be used by all relative paths filled in the project settings without hardcoding it?
There's no environmental variable. This is how to obtain the relative/full path of the project directory:
FString RelativePath = FPaths::GameContentDir();
FString FullPath = IFileManager::Get().ConvertToAbsolutePathForExternalAppForRead(*RelativePath);
source.
I'll answer myself after some research.
For my purposes, i.e., filling forms in the Editor, the realistic solution is to run Editor script such as via the Python Editor Script plugin, where you could query the project data using unreal.GeneralProjectSettings.
I'm making some project documentation for one of our hardware products. The documentation is for internal use, and it is located on a network drive:
\\ourserver\projects\project1-doc
The way we currently do version control, we have some folders like so:
\\ourserver\projects\project1-A
\\ourserver\projects\project1-B
\\ourserver\projects\project1-C
I want to be able to make a :download: link from the documentation to a pdf in one of those folders. Is there any way I can do a absolute path to the file? I've tried many things, for example:
:download:`schematic <file://///ourserver/projects/project1-C/schematic.pdf>`
:download:`schematic //ourserver/projects/project1-C/schematic.pdf>`
but I couldn't get it to work with Sphinx. How can I link to this file?
The document is hosted on the network, but do you build it through sphinx on the network? When using the :download: directive sphinx copies the files to the _build/html directory under _downloads and links to them there. So if you were to build the sphinx doc locally and it can't find the correct file to copy and link during the build then it wont create links, same if the path is wrong.
Anyways, since you are linking to files under version control, you will probably want to create a absolute path with the .. raw:: directive, so that you are always linked to the latest version.
.. raw:: html
<p><a class="reference download internal" href="/ourserver/projects/project1-C/schematic.pdf">
<tt class="xref download docutils literal">
Project 1-C Schematic
</tt></a><p>
And if you wanted to link to the pdf and launch it with a created pdf through sphinx. You could use a .. raw:: latex directive.
.. raw:: latex
\href{run:/ourserver/projects/project1-C/schematic.pdf}{Project 1-C Schematic}
Custom directives could also be built to make this more fluid.
Is it possible to choose to serve files only from a specific folder using Rikulo stream? I've tried
new StreamServer(uriMapping: _mapping, homeDir: 'my/web/webapp/app')
but I'm not getting the desired results as it's still serving files under the 'web' directory.
When homeDir is specified with a relative path, it is assumed to be relative to the current directory (Directory.current.path). I think it is not what you expect. You can use an absolute path for better control.
After examining the code, I think the relative path is better to base on the root directory rather than the current directory. Please follow Issue 29 for details. Also refer to the sample app here.