Im using fedora. I have trouble with correct polish letter ąźżć etc. How write example in cweb? I prefer latex not plain tex

  • Welcome to TeX.SX! I'm afraid there's not much people here using CWEB, so maybe a small example would be useful. – egreg Jan 29 '16 at 21:35
  • 3
    CWEB is built on Plain TeX. It loads its own macro package (cwebmac.tex) in addition. If you want Unicode support you could try compiling with xetex (not xelatex), but I haven't tested this. – musarithmia Jan 30 '16 at 6:53

By trial and error, I came to this. This is complete working example using Latex and some plain TeX definition together. This example is not perfectly.

% -*- coding: utf-8 -*-
@* Wstęp. To jest początek. A to kolejna linia zakończona znakiem |'\n'|. Znak {\tt końca linii} jest specyficzny dla każdego systemu.
@d MAX_1 50
#include <stdio.h>
int main(void)
@<Definicja tablicy@>@;
 printf(napis);return 0;}

@ @<Definicja tablicy@>=
char napis[]="Żółć"; /* typ znakowy */


  • Niestety Żółć w programie została zamieniona na Zółć – Marek Kaski Mar 3 '16 at 17:56
  • That's the price to pay for not using Unicode fonts. Now, have you tried to tangle this code? – jarnosz Aug 12 '17 at 19:15
  • I dont know how change this code – Marek Kaski Aug 14 '17 at 12:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.