[ Skip to the content ]

Institute of Formal and Applied Linguistics Wiki


[ Back to the navigation ]

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
user:stranak:notes [2009/01/10 11:28]
stranak
user:stranak:notes [2020/08/18 12:36]
stranak
Line 1: Line 1:
 +**Linux – verze distribuce:** <code>lsb_release -d</code>
 +
 ==== Screen ==== ==== Screen ====
 Ze splitu (^AS) se lze dostat pomocí ^AQ. Ze splitu (^AS) se lze dostat pomocí ^AQ.
 +
 +==== Transpozice tabulky (mac) ====
 +<code>rs -t</code>
 +
 +==== Vim ====
 +|:set list    | zobrazit neviditelné znaky                                  |
 +|:h listchars | které neviditelné znaky konkrétně                           |
 +|g[jk]        | přejít o vizuální řádek nahoru/dolů (při nastaveném 'wrap') |
 +|gv           | obnovit předchozí výběr (v)                                 |
 +|ga           | zobrazí Unicode Dec, Hex a Octal hodnotu znaku              |
 +|]p           | jako "p", ale přizpůsobí odsazení podle aktuálního řádku    |
 +|Ctrl-6       | přepíná tam a zpět mezi dvěma buffery                       |
 +|:set paste   | "paste" režim neindentuje vkládaný text                     |
 +|<ctrl>-R <reg> |vložit obsah registru v insert režimu nebo v :příkazu      |
 +|<ctrl>-O     | "suspend insert mode" = jeden příkaz z normálního režimu.   |
 +|abbreviate <abbr> <string> | expand <abbr> to <string> by typing <abbr>+space |
 +|<code>:imap TTT <esc>2Bdwi<<esc>pi><esc>F<"tyWElxE"tp2bi/<esc>$i</code> | napsání TTT vezme slovo-1,obalí jej slovem-2 jako html tagem a píše plynule dál |
 +
 +>Enable search-related options: highlight matches in a search (''hls''), show the current matching pattern as you search 
 +(''is''), ignore case (''ic'') unless you are searching for both upper and lowercase letters (''scs''). The second line 
 +adds the mapping ''Ctrl+n'' to quickly disable the currently highlighted search term (using the command '':noh''):
 +''set hls is ic scs''
 +''nmap <silent> <C-n> :noh<CR>''
 +http://b4winckler.wordpress.com/
  
 ==== X na jiném displayi ==== ==== X na jiném displayi ====
 <code>startx -- :1</code> <code>startx -- :1</code>
- 
-==== Synergy tunelem ==== 
-<code>alias synergvic='ssh -f -N -L 24801:localhost:24800 stranak@manfred && synergyc -f localhost:24801'</code> 
  
 ==== užitečné LaTeXové balíčky a triky ==== ==== užitečné LaTeXové balíčky a triky ====
Line 17: Line 40:
   * ''paralist'': for better itemize and enumerate; asparaenum, inparaenum, \begin{compactenum}[{Example} a)] etc. Also, items can be referenced via \label{} and \ref{}   * ''paralist'': for better itemize and enumerate; asparaenum, inparaenum, \begin{compactenum}[{Example} a)] etc. Also, items can be referenced via \label{} and \ref{}
   * //poznámky pod čarou v tabulce//: Je nutno poznámku rozdělit tak, že v buňce je ''\footnotemark{}'' a až pod tabulkou ''\footnotetext{text poznámky}''.   * //poznámky pod čarou v tabulce//: Je nutno poznámku rozdělit tak, že v buňce je ''\footnotemark{}'' a až pod tabulkou ''\footnotetext{text poznámky}''.
 +  * //Fixing wrong labels//: The command \label must appear after (or inside) \caption. Otherwise, it will pick up the current section or list number instead of what you intended.
 +  * ''minted'': sazba zdrojáků vč. (volitelného) zalamování řádek a barvení syntaxe podle jazyka. Používá Pygments.
 +
 +=== Sort in BibTeX ===
 +The solution is to embed the sort key in the author’s name, but to prevent it from being typeset. Patashnik recommends a command ''\noopsort'' (no-output-sortkey), which is defined and used as follows:
 +
 +''@PREAMBLE{ {\providecommand{\noopsort}[1]{}} }
 +...
 +@ARTICLE{Rayleigh1,
 +AUTHOR = "{\noopsort{Rayleigh}}{Lord Rayleigh}",
 +...
 +}''
 +Note that this ''\noopsort'' applies to the last name in this kind of construct, so an author with an Arabic name might be rendered:
 +
 +...
 +''AUTHOR = "Ali {\noopsort{Hadiidii}}{al-Hadiidii}",
 +...''
 +A further use might deal with word order games, as in the famous Vietnamese name:
 +
 +''...
 +AUTHOR = "\noopsort{Thanh Han The}{Han The Thanh}",''
 +
  
 === Xyling (lingvistické stromy) === === Xyling (lingvistické stromy) ===
Line 24: Line 69:
  *absolutely certain* that your document is only going to  *absolutely certain* that your document is only going to
  use a macro in just one way. For the case at hand:  use a macro in just one way. For the case at hand:
- <code\usepackage{xunicode}+ \usepackage{xunicode}
  \let\B\relax  \let\B\relax
  \let\T\relax  \let\T\relax
- \usepackage{xyling}</code>+ \usepackage{xyling}
   
  Of course this will mean that you cannot put words requiring  Of course this will mean that you cannot put words requiring
Line 49: Line 94:
   
  Yes, this requires great care; but at least it is possible.  Yes, this requires great care; but at least it is possible.
 +

[ Back to the navigation ] [ Back to the content ]