Posts

Showing posts with the label Input

ASCII Code For The TAB Character? (Want To Be Able To Input Tabs Into A Web Page Textbox)

Answer : Didn't read most of you post, sorry. But just fixing on the final little question what is the ASCII key code for Tab? ASCII value for tab is 9 (decimal or hex), so try Alt + ( Numpad 0 , Numpad 9 ). But, I've just tested doing so in this very edit box and it doesn't work, but it does in notepad, MS Word, etc. I wonder why...? Anyway, if you really need a tab somewhere odd, try copying one from notepad and pasting it where you need it - that's what I tend to do. Edit If you're doing this for it to be displayed on a website (which is what I think you're implying), a tab character may be ignored because HTML tends to ignore whitespace (outside of pre blocks, etc). If it is HTML you could also use the HTML entity version 	 as well, but this will function in the same way. The code is ALT + 0 0 9 However, I don't think it will accomplish what you are after. Hope this helps you -- you have quite a long question :-) Wikipedia ...

Can A Default Path Be Set Globally For \input{...} Akin To \graphicspath{...}?

Answer : \graphicspath comes from LaTeX's \input@path , just using the paths for graphics files. \input@path can be set independently, e.g.: \makeatletter \def\input@path{{path1/}{path2/}} \makeatother Internally package graphics stores its path of \graphicspath in \Ginput@path and locally sets \input@path to \Ginput@path , if it looks for files via \IfFileExists . Addition to \input@path The macro \input@path can be undefined (usually the default in LaTeX) or it can already contain other path entries. Therefore, \providecommand in the following code first defines the macro for the case that \input@path is undefined. Then \g@addto@macro extends the definition of \input@path . \makeatletter \providecommand*{\input@path}{} \g@addto@macro\input@path{{path1/}{path2/}}% append \makeatother Alternatively \edef can be used, which expands the definition text. The next example uses it to prepend the contents to \input@path to the old meaning of \input@path : \m...