The Shulchan Aruch · Orach Chayim
אורח חיים תקמ״זOrach Chayim 547
Siman 547 of 697 in Orach Chayim — 12 se'ifim
הלכות חול המועדLaws of Chol HaMoed· siman 547
Se’if 1א׳
חֹל הַמּוֹעֵד אָסוּר בְּהֶסְפֵּד וְתַעֲנִית; לְפִיכָךְ אֵין מַנִּיחִין אֶת הַמִּטָּה בָּרְחוֹב, שֶׁלֹּא לְהַרְגִּיל אֶת הַהֶסְפֵּד; וּמִטַּעַם זֶה אֵין מוֹלִיכִין אֶת הַמֵּת לְבֵית הַקְּבָרוֹת עַד שֶׁיִּהְיֶה הַקֶּבֶר מְתֻקָּן.
The Laws of Dealing with Death on Chol Hamoed, 12 Seifim: It is forbidden to eulogize or fast on hol hamoed. Therefore, we do not leave the coffin in the street so that we not cause eulogizing. For the same reason, we do not bring the coffin to the cemetery until the grave is ready.
Se’if 2ב׳
נָשִׁים מְעַנּוֹת, דְּהַיְנוּ שֶׁכֻּלָּם עוֹנוֹת כְּאַחַת; אֲבָל לֹא מְקוֹנְנוֹת, דְּהַיְנוּ שֶׁאַחַת מְדַבֶּרֶת וְכֻלָּן עוֹנוֹת אַחֲרֶיהָ; וְלֹא מְטַפְּחוֹת, דְּהַיְנוּ לְהַכּוֹת כַּף אֶל כַּף; נִקְבַּר הַמֵּת, אַף לֹא מְעַנּוֹת.
2. Women may wail, which is crying out together. They may not lament, which is when one speaks and the others cry out in response. they do not clap, which is clapping the hands together. Once the dead is buried, they may not wail.
Se’if 3ג׳
כָּל ל' יוֹם לִפְנֵי הַמּוֹעֵד אָסוּר לְהַסְפִּיד עַל מֵּת שֶׁמֵּת לוֹ לִפְנֵי שְׁלֹשִׁים יוֹם קֹדֶם הַמּוֹעֵד; וַאֲפִלּוּ אִם יֵשׁ לוֹ הֶסְפֵּד בְּלֹא זֶה, כְּגוֹן שֶׁמֵּת לוֹ מֵת בְּתוֹךְ ל' שֶׁמֻּתָּר לְסָפְדוֹ אֲפִלּוּ מֵת עֶרֶב הָרֶגֶל, אָסוּר לְהַסְפִּיד עִמּוֹ עַל הַמֵּת שֶׁמֵּת לִפְנֵי שְׁלֹשִׁים יוֹם קֹדֶם הַמּוֹעֵד.
3. During the thirty days prior to the holiday, It is forbidden to eulogize somebody who died before that thirty day period. This even applies if there is another eulogy that one is giving, i.e. if somebody died within the thirty period, in which case it is permitted to eulogize the dead even on the eve of the holiday. In such a case, it is still forbidden to eulogize alongside that person somebody who died thirty days prior to the holiday.
Shulchan Aruch, Orach Chayim — Torat Emet 363 edition, via Sefaria — public domain
English: Sefaria Community Translation — CC0